Oracle Application Server Wireless Java API Reference
B14043-01


oracle.panama
Class PanamaRuntimeException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byoracle.panama.PanamaRuntimeException

All Implemented Interfaces:
oracle.xml.xforms.exception.NestedException, java.io.Serializable

public class PanamaRuntimeException
extends java.lang.RuntimeException
implements oracle.xml.xforms.exception.NestedException

The Panama System Runtime Exception, is typically thrown on errors caused by severe errrors. The reason may be a program bug or a fatal error in one of the used sub-components as the Database etc.

This kind of error is fatal, and most probably there is need for some kind of System Administrations work to correct the System.

See Also:
NestedException, Serialized Form

Constructor Summary
PanamaRuntimeException(java.lang.String msg)
Construct with a plain message.
PanamaRuntimeException(java.lang.String code, java.lang.Object[] args)
Construct a PanamaException with a message code and message arguments.
PanamaRuntimeException(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.
PanamaRuntimeException(java.lang.Throwable detail)
PanamaRuntimeException(java.lang.Throwable detail, java.lang.String msg)
Construct a PanamaException with a nested exception and a detailed message (that will not be translated)
PanamaRuntimeException(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
PanamaRuntimeException(java.lang.Throwable detail, java.lang.String msg, java.lang.String code, java.lang.Object[] args)
Construct a PanamaException with a nested exception, a detailed non-translated message, and a message to be translated.

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

PanamaRuntimeException

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

PanamaRuntimeException

public PanamaRuntimeException(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.

PanamaRuntimeException

public PanamaRuntimeException(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()

PanamaRuntimeException

public PanamaRuntimeException(java.lang.Throwable detail)

PanamaRuntimeException

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

PanamaRuntimeException

public PanamaRuntimeException(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()

PanamaRuntimeException

public PanamaRuntimeException(java.lang.Throwable detail,
                              java.lang.String msg,
                              java.lang.String code,
                              java.lang.Object[] args)
Construct a PanamaException with a nested exception, a detailed non-translated message, and a message to be translated.
Parameters:
detail - the nested exception.
msg - the nontranslatable 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.

getLocalizedMessage

public java.lang.String getLocalizedMessage()
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(java.util.Locale locale)
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()
Returns:
a combination of the localized and untranslatable message

setMessageArguments

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

setMessageCode

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

toString

public java.lang.String toString()

Oracle Application Server Wireless Java API Reference
B14043-01


Copyright © 2004 Oracle Corporation. All Rights Reserved.