Oracle Application Server Wireless Java API Reference
B10400-01

oracle.panama
Class PanamaException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--oracle.panama.PanamaException
All Implemented Interfaces:
oracle.xml.xforms.exception.NestedException, java.io.Serializable
Direct Known Subclasses:
AbortServiceException, AdapterException, AuthenticateContentException, AuthenticationException, AuthorizationException, CallerLocationException, DeviceNotFoundException, ExcludedDeviceException, FeedException, LMSException, ModerateContentException, MultimediaException, UnauthorizedOperationException, VerifyContentException

public class PanamaException
extends java.lang.Exception
implements oracle.xml.xforms.exception.NestedException

The Panama Application Exception, is typically thrown on errors caused by invalid usage like mismatch in configuration parameters or due to broken business rules etc. etc...

This kind of error is non fatal, and most probably the System can continue without any Systems Administrations work.

See Also:
NestedException, Serialized Form

Constructor Summary
PanamaException(java.lang.String msg)
          Construct a PanamaException with a plain message.
PanamaException(java.lang.String code, java.lang.Object[] args)
          Construct a PanamaException with a message code and message arguments.
PanamaException(java.lang.String msg, java.lang.String code, java.lang.Object[] args)
          Construct a PanamaException a detailed non-translated message, and a message to be translated.
PanamaException(java.lang.Throwable detail)
          Construct a PanamaException with a nested exception, the message will be derived from the nested exception.
PanamaException(java.lang.Throwable detail, java.lang.String msg)
          Construct a PanamaException with a nested exception and a message that will not be translated
PanamaException(java.lang.Throwable detail, java.lang.String code, java.lang.Object[] args)
          Construct a PanamaException with a nested exception, and localized message code and arguments
PanamaException(java.lang.Throwable detail, java.lang.String msg, java.lang.String code, java.lang.Object[] args)
          Construct a PanamaException with a nested exception, a message to be translated, and an untranslatable message used to provide additional information.

 

Method Summary
 java.lang.Throwable getDetail()
          Get the nested exception.
 java.lang.String getLocalizedMessage()
           
 java.lang.String getLocalizedMessage(java.util.Locale locale)
           
 java.lang.String getMessage()
           
 void setMessageArguments(java.lang.Object[] args)
          set the message arguments of the localized errors
 void setMessageCode(java.lang.String code)
          set the message code of the error (used for localization purposes)
 java.lang.String toString()
           

 

Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Constructor Detail

PanamaException

public PanamaException(java.lang.String msg)
Construct a PanamaException with a plain message.
Parameters:
msg - the message.

PanamaException

public PanamaException(java.lang.String code,
                       java.lang.Object[] args)
Construct a PanamaException with a message code and message arguments.
Parameters:
code - the message code.
args - message arguments.

PanamaException

public PanamaException(java.lang.String msg,
                       java.lang.String code,
                       java.lang.Object[] args)
Construct a PanamaException a detailed non-translated message, and a message to be translated.
Parameters:
msg - the nontranslatable message.
code - localized message code.
args - localized message arguments.
See Also:
getDetail()

PanamaException

public PanamaException(java.lang.Throwable detail)
Construct a PanamaException with a nested exception, the message will be derived from the nested exception.
Parameters:
detail - the nested exception.
See Also:
getDetail()

PanamaException

public PanamaException(java.lang.Throwable detail,
                       java.lang.String msg)
Construct a PanamaException with a nested exception and a message that will not be translated
Parameters:
detail - the nested exception.
msg - the untranslatable message
See Also:
getDetail()

PanamaException

public PanamaException(java.lang.Throwable detail,
                       java.lang.String code,
                       java.lang.Object[] args)
Construct a PanamaException with a nested exception, and localized message code and arguments
Parameters:
detail - the nested exception.
code - localized message code.
args - localized message arguments.
See Also:
getDetail()

PanamaException

public PanamaException(java.lang.Throwable detail,
                       java.lang.String msg,
                       java.lang.String code,
                       java.lang.Object[] args)
Construct a PanamaException with a nested exception, a message to be translated, and an untranslatable message used to provide additional information.
Parameters:
detail - the nested exception.
msg - the untranslatable message.
code - localized message code.
args - localized message arguments.
See Also:
getDetail()
Method Detail

getDetail

public java.lang.Throwable getDetail()
Get the nested exception.
Specified by:
getDetail in interface oracle.xml.xforms.exception.NestedException
Returns:
the nested exception.

setMessageCode

public void setMessageCode(java.lang.String code)
set the message code of the error (used for localization purposes)

setMessageArguments

public void setMessageArguments(java.lang.Object[] args)
set the message arguments of the localized errors

getLocalizedMessage

public java.lang.String getLocalizedMessage(java.util.Locale locale)
Returns:
the localized message of this PanamaException; this will translate any message code and arguments into a local message

getLocalizedMessage

public java.lang.String getLocalizedMessage()
Overrides:
getLocalizedMessage in class java.lang.Throwable
Returns:
the localized message of this PanamaException; this will translate any message code and arguments into a local message

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.lang.Throwable
Returns:
a combination of the localized and untranslatable message

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Throwable

Oracle Application Server Wireless Java API Reference
B10400-01

Copyright © 2003 Oracle Corporation. All Rights Reserved.