com.sap.ip.me.api.services
Class MEException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.sap.ip.me.api.services.MEException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
HttpConnectionException, LogonException, PersistenceException, PIOSException, SmartSyncException, SyncPasswordException

public class MEException
extends java.lang.Exception

The base class of all Mobile Engine exceptions.

Author:
SAP
See Also:
Serialized Form

Constructor Summary
MEException()
          Constructor for the MEException object.
MEException(java.lang.String reason)
          Constructor for the MEException object.
MEException(java.lang.String reason, java.lang.Throwable nestedException)
          Constructor for the MEException.
 
Method Summary
 java.lang.Throwable getNestedException()
          Gets the nested exception.
 java.lang.String getReason()
          Gets the reason for the exception.
 void printStackTrace()
          Calls super implementation and prints additionally the nested exception if available.
 void printStackTrace(java.io.PrintStream out)
          Calls super implementation and prints additionally the nested exception if available.
 void printStackTrace(java.io.PrintWriter writer)
          Calls super implementation and prints additionally the nested exception if available.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MEException

public MEException(java.lang.String reason)
Constructor for the MEException object. No nested exception is used.

Parameters:
reason - The reason why this exception is occurred.

MEException

public MEException()
Constructor for the MEException object. No nested exception or reason is used.


MEException

public MEException(java.lang.String reason,
                   java.lang.Throwable nestedException)
Constructor for the MEException.

Parameters:
reason - The reason why this exception is occured.
nestedException - A nested exception.
Method Detail

getReason

public java.lang.String getReason()
Gets the reason for the exception.

Returns:
The reason.

getNestedException

public java.lang.Throwable getNestedException()
Gets the nested exception.

Returns:
The nested exception.

printStackTrace

public void printStackTrace()
Calls super implementation and prints additionally the nested exception if available.


printStackTrace

public void printStackTrace(java.io.PrintStream out)
Calls super implementation and prints additionally the nested exception if available.

Parameters:
out - The output stream where to write stack trace to.

printStackTrace

public void printStackTrace(java.io.PrintWriter writer)
Calls super implementation and prints additionally the nested exception if available.

Parameters:
writer - The writer where to write stack trace to.


Copyright © 2005 SAP AG. All Rights Reserved.