Constructor SanityCheckException
- Namespace
- WhalesSecret.TradeScriptLib.Exceptions
- Assembly
- WhalesSecret.TradeScriptLib.dll
SanityCheckException(string, string, string, int)
Initializes a new instance of the SanityCheckException class with a specified error message.
public SanityCheckException(string message, string callerFilePath = "", string callerMemberName = "", int callerLineNumber = -1)
Parameters
message
stringException message.
callerFilePath
stringFull path of the source file that contains the caller. This is the file path at the time of compile.
Do not pass any value.
callerMemberName
stringMethod or property name of the caller to the method.
Do not pass any value.
callerLineNumber
intLine number in the source file at which the method is called.
Do not pass any value.
SanityCheckException(string, Exception, string, string, int)
Initializes a new instance of the SanityCheckException class with a specified error message and a reference to the inner exception that is the cause of this exception.
public SanityCheckException(string message, Exception innerException, string callerFilePath = "", string callerMemberName = "", int callerLineNumber = -1)
Parameters
message
stringException message.
innerException
ExceptionInner exception.
callerFilePath
stringFull path of the source file that contains the caller. This is the file path at the time of compile.
Do not pass any value.
callerMemberName
stringMethod or property name of the caller to the method.
Do not pass any value.
callerLineNumber
intLine number in the source file at which the method is called.
Do not pass any value.