com.aspose.pdf.exception
Class AsposeBaseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.aspose.pdf.exception.AsposeBaseException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AsposeBadURLException, AsposeCloneNotSupportedException, AsposeCreateAttrException, AsposeCreateElementException, AsposeFOException, AsposeGenPdfException, AsposeInitException, AsposeIOException

public class AsposeBaseException
extends java.lang.Exception

Represents the base exception class of aspose exception.

See Also:
Serialized Form

Constructor Summary
AsposeBaseException(int errCode)
          Initializes an exception with an error code.
AsposeBaseException(int errCode, java.lang.String message)
          Initializes an exception with an error code and an error message.
AsposeBaseException(int errCode, java.lang.String message, java.lang.Throwable cause)
          Initializes an exception.
AsposeBaseException(int errCode, java.lang.Throwable cause)
          Initializes an exception.
 
Method Summary
 int getErrorCode()
          Get an error code from the exception object.
 java.lang.String getMessage()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AsposeBaseException

public AsposeBaseException(int errCode)
Initializes an exception with an error code.

Parameters:
errCode - The error code.
See Also:
AsposeErrorInfo

AsposeBaseException

public AsposeBaseException(int errCode,
                           java.lang.String message)
Initializes an exception with an error code and an error message.

Parameters:
errCode - The error code.
message - The exception message.
See Also:
AsposeErrorInfo

AsposeBaseException

public AsposeBaseException(int errCode,
                           java.lang.String message,
                           java.lang.Throwable cause)
Initializes an exception.

Parameters:
errCode - The error code.
message - The exception message.
cause - The exception throw from under layer.

AsposeBaseException

public AsposeBaseException(int errCode,
                           java.lang.Throwable cause)
Initializes an exception.

Parameters:
errCode - The error code.
cause - The exception throw from under layer.
Method Detail

getErrorCode

public int getErrorCode()
Get an error code from the exception object.


getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.lang.Throwable
See Also:
Throwable.getMessage()