Nitido Inc.

com.nitido.nim
Class NiMException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.nitido.nim.NiMException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ActivationException, AdNotFoundException, AuthenticationFailedException, DataControlException, EntityProvisionException, ExternalMailNuggetException, InitializationFailedException, InvalidSettingException, IPlanetSettingsException, JavaMailNuggetException, NimletException, NotificationServiceException, NuggetNotAvailableException, PABException, ValetException, WcapException

public class NiMException
extends java.lang.Exception

The NiMException is the base of all NiM Exceptions.

See Also:
Serialized Form

Field Summary
protected  int _errorCode
          The error code of the exception.
 
Constructor Summary
NiMException()
          Constructor with no specific exception message.
NiMException(int errorCode, java.lang.String message)
          Constructor with the specified detail message and the error code.
NiMException(int errorCode, java.lang.String message, java.lang.Throwable cause)
          Constructor, with errorcode, message and cause.
NiMException(int errorCode, java.lang.Throwable cause)
          Constructor, with no message.
NiMException(java.lang.String message)
          Constructor with the specified detail message.
 
Method Summary
 int getErrorCode()
          Get the error code associated to this exception.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_errorCode

protected int _errorCode
The error code of the exception. By default, it is -1.

Constructor Detail

NiMException

public NiMException()
Constructor with no specific exception message.


NiMException

public NiMException(java.lang.String message)
Constructor with the specified detail message.

Parameters:
message - The detail exception message.

NiMException

public NiMException(int errorCode,
                    java.lang.Throwable cause)
Constructor, with no message.

Parameters:
errorCode - error code
cause - cause

NiMException

public NiMException(int errorCode,
                    java.lang.String message)
Constructor with the specified detail message and the error code.

Parameters:
errorCode - The error code.
message - The detail exception message.

NiMException

public NiMException(int errorCode,
                    java.lang.String message,
                    java.lang.Throwable cause)
Constructor, with errorcode, message and cause.

Parameters:
errorCode - errorcode
message - message
cause - cause of this exception
Method Detail

getErrorCode

public int getErrorCode()
Get the error code associated to this exception.

Returns:
The error code.

toString

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

Nitido NiM 2.5 Java API

These JavaDoc pages are generated for release/nim_2_5-2.5.44

Copyright © 1999-2009 Nitido Inc.    Proprietary and Confidential.    All Rights Reserved.