Oracle Application Server Wireless Java API Reference
B10400-01

oracle.panama
Class PanamaRuntimeException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--oracle.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.Throwable detail)

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,
                              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.

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)

getLocalizedMessage

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

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.