Show / Hide Table of Contents

Class SoValidationException

ValidationException is thrown by the Save() methods if validation fails on an entity. Contains a string map that describes all fields and their errors. This is returned in the error object to the caller, so that they can highlight missing/bad fields to the user, with explanations.

Inheritance
Object
Exception
SoException
SoValidationException
Implements
ISerializable
_Exception
Inherited Members
SoException.FriendlyText
Exception.GetBaseException()
Exception.ToString()
Exception.GetObjectData(SerializationInfo, StreamingContext)
Exception.GetType()
Exception.Message
Exception.Data
Exception.InnerException
Exception.TargetSite
Exception.StackTrace
Exception.HelpLink
Exception.Source
Exception.HResult
Exception.SerializeObjectState
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.MemberwiseClone()
Namespace: SuperOffice.Exceptions
Assembly: SoCore.dll
Syntax
public class SoValidationException : SoException, ISerializable, _Exception

Constructors

SoValidationException(StringDictionary)

Exception with many messages.

Declaration
public SoValidationException(StringDictionary messages)
Parameters
Type Name Description
StringDictionary messages

Properties

Messages

The message collection.

Declaration
public StringDictionary Messages { get; }
Property Value
Type Description
StringDictionary

Methods

GetMessageFor(String)

Returns any message for a given field name, or blank if no message defined.

Declaration
public string GetMessageFor(string key)
Parameters
Type Name Description
String key
Returns
Type Description
String

Error message, or "" blank string.

Implements

System.Runtime.Serialization.ISerializable
System.Runtime.InteropServices._Exception

Extension Methods

EnumUtil.MapEnums<From, To>(From)
ExceptionHelper.GetExceptionInfo(Exception)
ExceptionHelper.GetInnermostException(Exception)
ExceptionHelper.SimpleMessageStack(Exception, String)
ExceptionHelper.Enumerate(Exception)
ExceptionHelper.FindExceptionOfType<T>(Exception)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top