Oracle Application Server Wireless Java API Reference
B14043-01


oracle.panama.mp
Class MPException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byoracle.panama.PanamaException
              extended byoracle.panama.mp.LMSException
                  extended byoracle.panama.mp.MPException

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

public class MPException
extends LMSException

This class is used to represent Mobile Positioning Exceptions.

See Also:
Serialized Form

Field Summary
static java.lang.String PROVIDERS_FAILURE
The error string indicating provider failure
static int PROVIDERS_FAILURE_ID
The error constant indicating provider failure

Constructor Summary
MPException()
Constructor
MPException(int id, java.lang.String str)
Constructor.
MPException(java.lang.String str)
Constructor.

Method Summary
java.lang.String getErrorMessage()
Returns an error message.

Methods inherited from class oracle.panama.PanamaException
getDetail, getLocalizedMessage, getLocalizedMessage, getMessage, setMessageArguments, setMessageCode, 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

Field Detail

PROVIDERS_FAILURE

public static final java.lang.String PROVIDERS_FAILURE
The error string indicating provider failure
See Also:
Constant Field Values

PROVIDERS_FAILURE_ID

public static final int PROVIDERS_FAILURE_ID
The error constant indicating provider failure
See Also:
Constant Field Values

Constructor Detail

MPException

public MPException()
Constructor

MPException

public MPException(int id,
                   java.lang.String str)
Constructor. Create an MPException object with an error id and an error message. Error ID and error message are provider-specific. When you write your mobile positioning implementation, you should pass appropriate error id and message when your throw an MPException.
Parameters:
id - An integer representing the error ID.
str - A string representing the error message.

MPException

public MPException(java.lang.String str)
Constructor. Create an MPException object with an error message.
Parameters:
str - A String representing the error message.

Method Detail

getErrorMessage

public java.lang.String getErrorMessage()
Returns an error message. If there is no error, then this function returns null.

Oracle Application Server Wireless Java API Reference
B14043-01


Copyright © 2004 Oracle Corporation. All Rights Reserved.