System.Runtime.InteropServices
Class ExternalException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by System.SystemException
                  extended by System.Runtime.InteropServices.ExternalException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
NoAudioHardwareException

public class ExternalException
extends SystemException

The base exception type for all COM interop exceptions and structured exception handling (SEH) exceptions.

Author:
Halofreak1990
See Also:
Serialized Form

Constructor Summary
ExternalException()
          Initializes a new instance of the ExternalException class with default properties.
ExternalException(java.lang.String message)
          Initializes a new instance of the ExternalException class with a specified error message.
ExternalException(java.lang.String message, java.lang.Exception innerException)
          Initializes a new instance of the ExternalException class with a specified error message and a reference to the inner exception that is the cause of this exception.
ExternalException(java.lang.String message, int errorCode)
          Initializes a new instance of the ExternalException class with a specified error message and the HRESULT of the error.
 
Method Summary
 int getErrorCode()
          Gets the HRESULT of the error.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExternalException

public ExternalException()
Initializes a new instance of the ExternalException class with default properties.


ExternalException

public ExternalException(java.lang.String message)
Initializes a new instance of the ExternalException class with a specified error message.

Parameters:
message - The error message that specifies the reason for the exception.

ExternalException

public ExternalException(java.lang.String message,
                         java.lang.Exception innerException)
Initializes a new instance of the ExternalException class with a specified error message and a reference to the inner exception that is the cause of this exception.

Parameters:
message - The error message that explains the reason for the exception.
innerException - The exception that is the cause of the current exception. If the inner parameter is not null, the current exception is raised in a catch block that handles the inner exception.

ExternalException

public ExternalException(java.lang.String message,
                         int errorCode)
Initializes a new instance of the ExternalException class with a specified error message and the HRESULT of the error.

Parameters:
message - The error message that specifies the reason for the exception.
errorCode - The HRESULT of the error.
Method Detail

getErrorCode

public int getErrorCode()
Gets the HRESULT of the error.