com.crystaldecisions.sdk.exception
Class SDKRuntimeException.UnexpectedCause

java.lang.Object
  extended by CERuntimeException
      extended by com.crystaldecisions.sdk.exception.SDKRuntimeException
          extended by com.crystaldecisions.sdk.exception.SDKRuntimeException.UnexpectedCause
Enclosing class:
SDKRuntimeException

public static class SDKRuntimeException.UnexpectedCause
extends SDKRuntimeException

This exception describes an unexpected runtime problem that is caused by some other exception.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.crystaldecisions.sdk.exception.SDKRuntimeException
SDKRuntimeException.ContradictingValues, SDKRuntimeException.DeprecatedMethodAccessed, SDKRuntimeException.InvalidOperation, SDKRuntimeException.ObjectNotFound, SDKRuntimeException.OutOfRange, SDKRuntimeException.PropertyNotFound, SDKRuntimeException.PublicationDocumentNotFound, SDKRuntimeException.SetInherited, SDKRuntimeException.UndefinedValue, SDKRuntimeException.Unexpected, SDKRuntimeException.UnexpectedCause, SDKRuntimeException.UnexpectedValue
 
Constructor Summary
SDKRuntimeException.UnexpectedCause(java.lang.Exception cause)
           Constructs an Unexpected Exception object.
 
Method Summary
 java.lang.String getDetailMessage(java.util.Locale locale)
           Gets the detailed error message used for diagnosis.
 java.lang.String getMessage(java.util.Locale locale)
           Returns a localized String exception message from the SDKRuntimeException parent class.
 
Methods inherited from class com.crystaldecisions.sdk.exception.SDKRuntimeException
checkPositive, checkRange, checkRange, getDetail, getParams
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SDKRuntimeException.UnexpectedCause

public SDKRuntimeException.UnexpectedCause(java.lang.Exception cause)

Constructs an Unexpected Exception object.

Parameters:
cause - An Exception object containing the cause of the unexpected runtime problem.
Method Detail

getMessage

public java.lang.String getMessage(java.util.Locale locale)

Returns a localized String exception message from the SDKRuntimeException parent class.

Parameters:
locale - A Locale object that specifies the language of the exception message.
Returns:
A localized String exception message from the SDKRuntimeException parent class.

getDetailMessage

public java.lang.String getDetailMessage(java.util.Locale locale)
Description copied from class: SDKRuntimeException

Gets the detailed error message used for diagnosis. The string will contain the stack trace, and nested exceptions if applicable. This string is returned in its requested locale.

Overrides:
getDetailMessage in class SDKRuntimeException
Parameters:
locale - The requested locale of the message
Returns:
The detail string.