com.crystaldecisions.sdk.occa.report.lib
Class ReportSDKIllegalArgumentException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by java.lang.IllegalArgumentException
                  extended by com.crystaldecisions.sdk.occa.report.lib.ReportSDKIllegalArgumentException
All Implemented Interfaces:
java.io.Serializable

public class ReportSDKIllegalArgumentException
extends java.lang.IllegalArgumentException

See Also:
Serialized Form

Constructor Summary
ReportSDKIllegalArgumentException(java.lang.String RCI)
           
ReportSDKIllegalArgumentException(java.lang.String RCI, java.util.Locale productLocale)
           
ReportSDKIllegalArgumentException(java.lang.String message, java.lang.String RCI)
           
ReportSDKIllegalArgumentException(java.lang.String message, java.lang.String RCI, java.util.Locale productLocale)
           
ReportSDKIllegalArgumentException(java.lang.String RCI, java.lang.String message, java.lang.Throwable e)
           
 
Method Summary
 java.lang.Throwable findCause(java.lang.Class throwable)
          Digs into the cause chain to find a cause of the specified type.
 java.lang.String getLocalizedMessage()
           Gets the localized message from the resource bundle using the given locale.
 java.lang.String getResourceKey()
           Gets the key used to retrieve a resource value from the resource bundle.
 java.lang.String getRootCauseIdentifier()
           Gets the root cause identifier of the exception.
 boolean isCausedByA(java.lang.Class throwable)
          Digs into the cause chain to see if this exception was caused by the specified type of throwable.
 void printStackTrace()
           Prints the stack trace.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReportSDKIllegalArgumentException

public ReportSDKIllegalArgumentException(java.lang.String RCI)

ReportSDKIllegalArgumentException

public ReportSDKIllegalArgumentException(java.lang.String message,
                                         java.lang.String RCI)

ReportSDKIllegalArgumentException

public ReportSDKIllegalArgumentException(java.lang.String RCI,
                                         java.lang.String message,
                                         java.lang.Throwable e)

ReportSDKIllegalArgumentException

public ReportSDKIllegalArgumentException(java.lang.String RCI,
                                         java.util.Locale productLocale)

ReportSDKIllegalArgumentException

public ReportSDKIllegalArgumentException(java.lang.String message,
                                         java.lang.String RCI,
                                         java.util.Locale productLocale)
Method Detail

printStackTrace

public void printStackTrace()

Prints the stack trace.

Overrides:
printStackTrace in class java.lang.Throwable

getResourceKey

public java.lang.String getResourceKey()

Gets the key used to retrieve a resource value from the resource bundle.

Returns:
a String that specifies the key

getRootCauseIdentifier

public java.lang.String getRootCauseIdentifier()

Gets the root cause identifier of the exception.

Returns:
a String that specifies the rootCauseID

getLocalizedMessage

public java.lang.String getLocalizedMessage()

Gets the localized message from the resource bundle using the given locale.

Overrides:
getLocalizedMessage in class java.lang.Throwable
Returns:
a String that specifies the localized message

isCausedByA

public boolean isCausedByA(java.lang.Class throwable)
Digs into the cause chain to see if this exception was caused by the specified type of throwable.

Parameters:
throwable - The Class instance for the throwable we are looking for.
Returns:
whether a throwable of the specified type was found in the cause chain

findCause

public java.lang.Throwable findCause(java.lang.Class throwable)
Digs into the cause chain to find a cause of the specified type. The most outer cause that is an instance of the provided type is returned.

Parameters:
throwable - The Class instance for the exception we are looking for.
Returns:
The outermost cause of the specified type. null if not found.