The ComException contains the following constructors:
ComException(int hr)
ComException(int hr, String description)
ComException(int hr, String source, String helpFile,int helpContext)
ComException(int hr, String description, String source, String helpFile, int helpContext)
ComException()
ComException(String description)
Creates a ComException object that contains the specified HRESULT.
public ComException(int hr);
hr | The HRESULT value. |
Creates a ComException object that contains an HRESULT and a description.
public ComException(int hr, String description);
hr | The HRESULT value that is returned. |
description | The detail description. |
Creates a ComException object that contains the HRESULT, source, Help file, and help context.
public ComException(int hr, String source, String helpFile, int helpContext);
hr | The HRESULT value that is returned. |
source | The source of the ComException object. |
helpFile | The Help file that explains the ComException object. |
helpContext | The identifier that indicates the context of the exception. |
Creates a ComException object that contains the specified HRESULT, description, source, Help file, and Help context.
public ComException(int hr, String description, String source, String helpFile, int helpContext);
hr | The HRESULT value to be returned. |
description | The detail description. |
source | The source of the ComException object. |
helpFile | The Help file that explains the ComException object. |
helpContext | The identifier that indicates the context of the exception. |
Creates and stores an uninitialized ComException object.
public ComException();
Creates and stores a ComException object that contains the detail description.
public ComException(String description);
description | The detail description. |