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 MemoryShortageException( string spaceName, string containerName, string hostName, string message, Exception innerException )
Public Sub New ( _ spaceName As String, _ containerName As String, _ hostName As String, _ message As String, _ innerException As Exception _ )
public: MemoryShortageException( String^ spaceName, String^ containerName, String^ hostName, String^ message, Exception^ innerException )
public MemoryShortageException( String spaceName, String containerName, String hostName, String message, Exception innerException )
Parameters
- spaceName (String)
- The name of the space that caused this exception.
- containerName (String)
- The name of the container that contains the space that caused this exception.
- hostName (String)
- The name of the machine that hosts the space that caused this exception.
- message (String)
- The error message that explains the reason for the exception.
- innerException (Exception)
- The exception that is the cause of the current exception.