org.apertereports.common.exception
Class AperteReportsRuntimeException

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

public class AperteReportsRuntimeException
extends RuntimeException

Unchecked exception used to propagate errors and handle them in higher level layers.

See Also:
Serialized Form

Constructor Summary
AperteReportsRuntimeException(AperteReportsException e)
          Wraps checked exception (business error).
AperteReportsRuntimeException(Exception e)
          Wraps technical error.
AperteReportsRuntimeException(ReportConstants.ErrorCodes errorCode)
           
AperteReportsRuntimeException(ReportConstants.ErrorCodes errorCode, Throwable cause)
           
AperteReportsRuntimeException(String message, ReportConstants.ErrorCodes errorCode)
           
AperteReportsRuntimeException(String message, ReportConstants.ErrorCodes errorCode, Throwable cause)
           
 
Method Summary
 ReportConstants.ErrorCodes getErrorCode()
           
 String[] getErrorDetails()
           
 String getLocalizationPrefix()
           
 
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

AperteReportsRuntimeException

public AperteReportsRuntimeException(ReportConstants.ErrorCodes errorCode)

AperteReportsRuntimeException

public AperteReportsRuntimeException(String message,
                                     ReportConstants.ErrorCodes errorCode)

AperteReportsRuntimeException

public AperteReportsRuntimeException(String message,
                                     ReportConstants.ErrorCodes errorCode,
                                     Throwable cause)

AperteReportsRuntimeException

public AperteReportsRuntimeException(ReportConstants.ErrorCodes errorCode,
                                     Throwable cause)

AperteReportsRuntimeException

public AperteReportsRuntimeException(AperteReportsException e)
Wraps checked exception (business error).

Parameters:
e -

AperteReportsRuntimeException

public AperteReportsRuntimeException(Exception e)
Wraps technical error.

Parameters:
e -
Method Detail

getErrorCode

public ReportConstants.ErrorCodes getErrorCode()

getErrorDetails

public String[] getErrorDetails()

getLocalizationPrefix

public String getLocalizationPrefix()


Copyright © 2011-2012. All Rights Reserved.