Class AdminMessageException
Custom components and some plugins can throw exceptions of this type to show a helpful error message to the user.
Inheritance
Implements
Namespace: Softadmin.Api
Assembly: Softadmin.Api.dll
Syntax
[Serializable]
public sealed class AdminMessageException : Exception, ISerializable, _ExceptionRemarks
If you throw an AdminMessageException whose System.Exception.InnerException property is not null then the inner exception will be written to the system's error log.
Constructors
AdminMessageException()
Initializes a new instance of the AdminMessageException class.
Declaration
public AdminMessageException()AdminMessageException(Int32, Exception)
Initializes a new instance of the AdminMessageException class.
Declaration
public AdminMessageException(int phraseId, Exception innerException = null)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int32 | phraseId | The id of a language phrase. | 
| System.Exception | innerException | The exception that is the cause of the current exception, or a null reference if no inner exception is specified. This exception will be written to the system's error log. | 
AdminMessageException(String)
Initializes a new instance of the AdminMessageException class.
Declaration
public AdminMessageException(string message)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | message | The message that describes the error. | 
AdminMessageException(String, Exception)
Initializes a new instance of the AdminMessageException class.
Declaration
public AdminMessageException(string message, Exception innerException)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | message | The error message that explains the reason for the exception. | 
| System.Exception | innerException | The exception that is the cause of the current exception, or a null reference if no inner exception is specified. This exception will be written to the system's error log. | 
Properties
PhraseId
Gets the id of the language phrase to use instead of System.Exception.Message.
Declaration
public int? PhraseId { get; }Property Value
| Type | Description | 
|---|---|
| System.Nullable<System.Int32> |