ExceptionsGetExceptionType Method (String, Exception, ILogger, String, Int32, Object) |
Creates an new instance of ExceptionType (inheriting from MicaException).
Namespace:
MicaSystems.Utils
Assembly:
MicaSystems.Utils (in MicaSystems.Utils.dll) Version: 1.0.0.0 (1.1.0.123)
Syntax public static ExceptionType Get<ExceptionType>(
string message,
Exception innerException = null,
ILogger logger = null,
string lastStep = null,
int code = -1,
Object tag = null
)
where ExceptionType : MicaException, IMicaException
Parameters
- message
- Type: SystemString
- innerException (Optional)
- Type: SystemException
- logger (Optional)
- Type: MicaSystems.UtilsILogger
- lastStep (Optional)
- Type: SystemString
- code (Optional)
- Type: SystemInt32
- tag (Optional)
- Type: SystemObject
Type Parameters
- ExceptionType
Return Value
Type:
ExceptionTypeSee Also