Initializes a new instance of the exception with a specified error message and a
reference to the inner exception that is the cause of this exception.
Declaration Syntax
C# | Visual Basic | Visual C++ | J# |
public ServiceNotFoundException( string message, Exception innerException )
Public Sub New ( _ message As String, _ innerException As Exception _ )
public: ServiceNotFoundException( String^ message, Exception^ innerException )
public ServiceNotFoundException( String message, Exception innerException )
Parameters
- message (String)
- The error message that explains the reason for the exception.
- innerException (Exception)
- The exception that is the cause of the current exception.