Oracle Application Server Wireless Java API Reference
B14043-01


oracle.panama.spatial.eh
Class LBSException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byoracle.panama.spatial.eh.LBSException

All Implemented Interfaces:
oracle.xml.xforms.exception.NestedException, java.io.Serializable
Direct Known Subclasses:
LBSProxyException, LBSServiceException

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

This class represents location based service exception

See Also:
Serialized Form

Constructor Summary
LBSException(java.lang.String errorCode)
Constructor
LBSException(java.lang.String errorCode, java.lang.Object[] params)
Constructor
LBSException(java.lang.String errorCode, java.lang.Object[] params, java.lang.Throwable exc)
Constructor
LBSException(java.lang.String errorCode, java.lang.Throwable exc)
Constructor

Method Summary
java.lang.Throwable getDetail()
Get the original exception of a NestedException
java.lang.String getErrorCode()
Return the key for the error message.
java.lang.String getLocalizedMessage()
Get the error message in the default language of the exception
java.lang.String getLocalizedMessage(java.util.Locale l)
Get the error message in the specified language of the exception

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

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

Constructor Detail

LBSException

public LBSException(java.lang.String errorCode)
Constructor
Parameters:
errorCode - the key string for error message of the exception.

LBSException

public LBSException(java.lang.String errorCode,
                    java.lang.Object[] params)
Constructor
Parameters:
errorCode - the key string for error message of the exception.
params - the parameters embedded in the error message

LBSException

public LBSException(java.lang.String errorCode,
                    java.lang.Object[] params,
                    java.lang.Throwable exc)
Constructor
Parameters:
errorCode - the key string for error message of the exception.
params - the parameters embedded in the error message
exc - the original exception

LBSException

public LBSException(java.lang.String errorCode,
                    java.lang.Throwable exc)
Constructor
Parameters:
errorCode - the key string for error message of the exception.
exc - the original exception

Method Detail

getDetail

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

getErrorCode

public java.lang.String getErrorCode()
Return the key for the error message.
Returns:
the error code

getLocalizedMessage

public java.lang.String getLocalizedMessage()
Get the error message in the default language of the exception
Returns:
the error message

getLocalizedMessage

public java.lang.String getLocalizedMessage(java.util.Locale l)
Get the error message in the specified language of the exception
Parameters:
l - the locale representing a language, a country or both

Oracle Application Server Wireless Java API Reference
B14043-01


Copyright © 2004 Oracle Corporation. All Rights Reserved.