Home  Products  Purchase  Downloads  Demos  Forums  Blogs  Ticket  Wiki  API  Corporate

com.aspose.cells
Class ExcelException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.aspose.cells.ExcelException
All Implemented Interfaces:
java.io.Serializable

public class ExcelException
extends java.lang.RuntimeException

The exception that is thrown which indicates an error occurs.

See Also:
Serialized Form

Field Summary
static int FILE_CORRUPTED
          Represents the excel file which you are trying to parse is corrupted.
static int GENERAL
          Represents a general error.
static int ILLEGAL_OPERATION
          Represents an illegal operation is performed.
static int INTERNAL_CHECK_ERROR
          Reprensents an internal logic check fails.
static int INTERNAL_IO_ERROR
          Represents an internal I/O error occurs while reading or writing.
static int INVALID_LICENSE
          Reprensents a license related error.
static int UNSUPPORTED_FEATURES
          Represents that unsupported features are encounted.
 
Constructor Summary
ExcelException()
          Initializes a new instance of the ExcelException class.
ExcelException(java.lang.String message, int code)
          Initializes a new instance of the Exception class.
 
Method Summary
 int getCode()
          Gets the exception code.
 
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
 

Field Detail

GENERAL

public static final int GENERAL
Represents a general error.

See Also:
Constant Field Values

FILE_CORRUPTED

public static final int FILE_CORRUPTED
Represents the excel file which you are trying to parse is corrupted.

See Also:
Constant Field Values

ILLEGAL_OPERATION

public static final int ILLEGAL_OPERATION
Represents an illegal operation is performed.

See Also:
Constant Field Values

UNSUPPORTED_FEATURES

public static final int UNSUPPORTED_FEATURES
Represents that unsupported features are encounted.

See Also:
Constant Field Values

INTERNAL_IO_ERROR

public static final int INTERNAL_IO_ERROR
Represents an internal I/O error occurs while reading or writing.

See Also:
Constant Field Values

INTERNAL_CHECK_ERROR

public static final int INTERNAL_CHECK_ERROR
Reprensents an internal logic check fails.

See Also:
Constant Field Values

INVALID_LICENSE

public static final int INVALID_LICENSE
Reprensents a license related error.

See Also:
Constant Field Values
Constructor Detail

ExcelException

public ExcelException(java.lang.String message,
                      int code)
Initializes a new instance of the Exception class.

Parameters:
message - the detail message.
code - exception code. Must be one of the constant fields of ExcelException.

ExcelException

public ExcelException()
Initializes a new instance of the ExcelException class. The detail message will be empty and exception code will be ExcelException.GENERAL.

Method Detail

getCode

public int getCode()
Gets the exception code.

Returns:
the exception code.