Click or drag to resize

AppException Class

The AppException is thrown by (among other places) the AppPage.ReportErrorAndHalt() method. The exception is thrown on non-fatal errors - f.x. security violations. Exceptions of this type is caught in global.asax (Application_Error) and presented "nicely" to the user (without stack trace etc.).
Inheritance Hierarchy
SystemObject
  SystemException
    SystemApplicationException
      Omada.OE.ModelAppException
        More...

Namespace:  Omada.OE.Model
Assembly:  Omada.OE.Model (in Omada.OE.Model.dll) Version: 15.0.0.0
Syntax
C#
[SerializableAttribute]
public class AppException : ApplicationException

The AppException type exposes the following members.

Constructors
  NameDescription
Public methodAppException(String)
Protected methodAppException(SerializationInfo, StreamingContext)
Public methodAppException(String, Exception, String)
If the hashCode is provided it is stored in the Data of the exception for presentation to the end user.
Top
Methods
  NameDescription
Public methodStatic memberAddRefNumberToException
Adds a reference number to the Exception if it does not exist already, neither in an inner exception.
Public methodStatic memberCreate
Creates an AppException where the hashCode is contained in the Message. If the AppException is created elsewhere without the hashcode in the message a new exception is created with the AppException as inner exception
Public methodStatic memberFormatRefNumber
Formates an reference number to be presented to the end user
Public methodStatic memberGetRefNumberFromException
Retrieves a reference number from an exception including inner exceptions
Top
Extension Methods
  NameDescription
Public Extension MethodToBool
Converts object to boolean.
(Defined by ObjectExtensions.)
Public Extension MethodToDateTime
Converts object to DateTime.
(Defined by ObjectExtensions.)
Public Extension MethodToInt
Converts object to integer.
(Defined by ObjectExtensions.)
Top
See Also
Inheritance Hierarchy
SystemObject
  SystemException
    SystemApplicationException
      Omada.OE.ModelAppException
        Omada.OE.ModelCodeMethodException
        Omada.OE.ModelConnectionTestException
        Omada.OE.ModelDependencyException
        Omada.OE.ModelFriendlyException
        Omada.OE.ModelInfoException
        Omada.OE.ModelLicenseException
        Omada.OE.ModelMailAuthenticationException
        Omada.OE.ModelMailConnectionException
        Omada.OE.ModelPasswordHistoryViolationException
        Omada.OE.ModelPasswordTooWeakException
        Omada.OE.ModelSecurityException