Exceptions Class |
Namespace: MicaSystems.Utils
public static class Exceptions
The Exceptions type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | GenerateDisplayMessage | Generates a description of the exception. This description includes type and message. |
![]() ![]() | GenerateDisplayMessageForWeb | Generates a description of the exception. This description includes type and message. Lines will be separated by a BR tag. |
![]() ![]() | GenerateFullDisplayMessage | Generates a description of the exception and its inner exceptions. These descriptions include type and message. |
![]() ![]() | GenerateFullDisplayMessageForWeb | Generates a description of the exception and its inner exceptions. These descriptions include type and message. Lines will be separated by a BR tag. |
![]() ![]() | GenerateFullTechnicalMessage | Generates a complete description of the exception and its inner exceptions. These descriptions include type, message, steps and stack trace. If a logger is provided, the message will include its last steps. |
![]() ![]() | GenerateFullTechnicalMessageForWeb | Generates a complete description of the exception and its inner exceptions. These descriptions include type, message, steps and stack trace. If a logger is provided, the message will include its last steps. Lines will be separated by a BR tag. |
![]() ![]() | GenerateTechnicalMessage | Generates a complete description of the exception. This description includes type, message, steps and stack trace. |
![]() ![]() | GenerateTechnicalMessageForWeb | Generates a complete description of the exception. This description includes type, message, steps and stack trace. Lines will be separated by a BR tag. |
![]() ![]() | GetExceptionType(String, Exception) |
Creates an new instance of ExceptionType (inheriting from MicaException).
|
![]() ![]() | GetExceptionType(Exception, String, String) |
Creates an new instance of ExceptionType (inheriting from MicaException).
|
![]() ![]() | GetExceptionType(Exception, ILogger, String, String) |
Creates an new instance of ExceptionType (inheriting from MicaException).
|
![]() ![]() | GetExceptionType(String, Exception, ILogger, String, Int32, Object) |
Creates an new instance of ExceptionType (inheriting from MicaException).
|
![]() ![]() | GetAccessDeniedException |
Creates an exception thrown when an operation could not be performed because of specific restrictions.
|
![]() ![]() | GetAllExceptions |
Gets all exceptions of the specified exception.
This includes the exception itself followed by its inner exceptions.
|
![]() ![]() | GetAllInnerExceptions |
Gets all inner exceptions of the specified exception.
|
![]() ![]() | GetArgumentException |
Creates a new ArgumentException with message parts.
|
![]() ![]() | GetBuildException |
Creates an exception thrown when a project build failed.
|
![]() ![]() | GetDataCollisionException |
Create a generic exception thrown when different objects have been found with common unique keys.
|
![]() ![]() | GetDirectoryNotFoundException |
Creates a new DirectoryNotFoundException with message parts.
|
![]() ![]() | GetFileNotFoundException |
Creates a new FileNotFoundException with message parts.
|
![]() ![]() | GetFormatException |
Creates a new FormatException with message parts.
|
![]() ![]() | GetInvalidCastException |
Creates a new InvalidCastException with message parts.
|
![]() ![]() | GetInvalidOperationException |
Creates an exception thrown when a method call is invalid for the object's current.
|
![]() ![]() | GetInvalidStateException |
Creates an exception thrown when the current object state does not allow to perform an operation.
|
![]() ![]() | GetMissingDataException |
Creates an exception thrown when required data are missing on an object.
|
![]() ![]() | GetMissingMethodException |
Creates a new MissingMethodException with message parts.
|
![]() ![]() | GetNotImplementedException |
Creates a new NotImplementedException with message parts.
|
![]() ![]() | GetObjectNotFoundException |
Creates an exception thrown when an object has not been found.
|
![]() ![]() | GetOperationFailedException(String) |
Create a generic exception thrown when an operation failed.
|
![]() ![]() | GetOperationFailedException(String) |
Creates a new OperationFailedException with message parts.
|
![]() ![]() | GetOperationFailedException(Exception, String) |
Creates a new OperationFailedException with a formatted message.
|
![]() ![]() | GetTraceLog(StackTrace, StringBuilder) |
Gets the complete stack trace, each line representing a method call.
Note : if a builder is provided, this method will return null. |
![]() ![]() | GetTraceLog(Exception, StringBuilder) |
Gets the complete stack trace, each line representing a method call.
Note : if a builder is provided, this method will return null. |
![]() ![]() | GetTraceLogForWeb(StackTrace, HtmlBuilder) |
Gets the complete stack trace as HTML, each line representing a method call.
Note : if a builder is provided, this method will return an empty HTML string. |
![]() ![]() | GetTraceLogForWeb(Exception, HtmlBuilder) |
Gets the complete stack trace as HTML, each line representing a method call.
Note : if a builder is provided, this method will return an empty HTML string. |
![]() ![]() | GetValidationException |
Creates an exception thrown when a validation failed.
|
![]() ![]() | ThrowIfNull(Object, String) |
Throws an ArgumentNullException if the object is null.
|
![]() ![]() | ThrowIfNull(Object, String, String, String) |
Throws an ArgumentNullException if the object is null.
|
![]() ![]() | ThrowIfNullOrEmpty(Guid, String, String) |
Throws an ArgumentNullException if the guid is null or equal to an empty guid.
|
![]() ![]() | ThrowIfNullOrEmpty(String, String, String) |
Throws an ArgumentNullException if the string is null or empty.
|