The ComFailException Class contains the following constructors:
ComFailException(int hr)
ComFailException(int hr, String message)
ComFailException(int hr, String source, String helpFile)
ComFailException(int hr, String description, String source, String helpFile, int helpContext)
ComFailException()
ComFailException(String message)
Creates a ComFailException object that contains the specified HRESULT.
public ComFailException(int hr);
hr | The HRESULT value that is returned. |
Creates a ComFailException object that contains the specified HRESULT and detail description.
public ComFailException(int hr, String message);
hr | The HRESULT value that is returned. |
message | The detail description. |
Creates a ComFailException object that contains the specified HRESULT, source, help file, and help context.
public ComFailException(int hr, String source, String helpFile, int helpContext);
hr | The HRESULT value that is returned. |
source | The source of the ComFailException object. |
helpFile | The Help file for the ComFailException object. |
helpContext | The identifier that indicates the context of the exception. |
Creates a ComFailException object that contains the specified HRESULT, description, source, Help file, and help context.
public ComFailException(int hr, String description, String source, String helpFile, int helpContext);
hr | The HRESULT value that is returned. |
description | The detail description. |
source | The source of the ComFailException object. |
helpFile | The Help file for the ComFailException object. |
helpContext | The identifier that indicates the context of the exception. |
Creates a ComFailException object. The default value of the HRESULT stored in the object is E_FAIL (0x80004005L).
public ComFailException();
Creates a ComFailException object that contains the specified detail description. The default value of the HRESULT stored in the object is E_FAIL (0x80004005L).
public ComFailException(String message);
message | The detail description. |