org.apertereports.common.exception
Class ARException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apertereports.common.exception.ARException
All Implemented Interfaces:
Serializable

public class ARException
extends Exception

Universal checked exception, indicating errors that must be handled directly.

See Also:
Serialized Form

Constructor Summary
ARException(ARConstants.ErrorCode errorCode)
          Creates AR exception
ARException(ARConstants.ErrorCode errorCode, String... details)
          Creates AR exception
ARException(ARConstants.ErrorCode errorCode, Throwable cause)
          Creates AR exception
ARException(Throwable cause)
          Creates AR exception
 
Method Summary
 ARConstants.ErrorCode getErrorCode()
          Returns error code.
 String[] getErrorDetails()
          Returns error details
 
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

ARException

public ARException(ARConstants.ErrorCode errorCode)
Creates AR exception

Parameters:
errorCode - Error code

ARException

public ARException(ARConstants.ErrorCode errorCode,
                   String... details)
Creates AR exception

Parameters:
errorCode - Error code
details - Details

ARException

public ARException(ARConstants.ErrorCode errorCode,
                   Throwable cause)
Creates AR exception

Parameters:
errorCode - Error code
cause - Cause

ARException

public ARException(Throwable cause)
Creates AR exception

Parameters:
cause - Cause
Method Detail

getErrorCode

public ARConstants.ErrorCode getErrorCode()
Returns error code. If the code was not set by the constructor, then ARConstants.ErrorCode.UNKNOWN is returned

Returns:
Error code

getErrorDetails

public String[] getErrorDetails()
Returns error details

Returns:
Error details


Copyright © 2011-2013. All Rights Reserved.