com.plumtree.server.marshalers
Class PTException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.plumtree.openfoundation.util.XPException
                  extended by com.plumtree.server.marshalers.PTException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
PTSException

public class PTException
extends com.plumtree.openfoundation.util.XPException

Title:

Description:

Copyright: Copyright (c) 2002

Company:

Author:
Marc Harrison, Joseph Chen
See Also:
Serialized Form

Constructor Summary
PTException(java.lang.Exception e, java.lang.String message, int code)
          Crate a PTException that wraps an underlying native Exception object, and contains a Plumtree specific error message and error code (from PT_RESULTCODES).
PTException(java.lang.String message, int code)
          Create a PTException object containing the specified error message and error code (from PT_RESULTCODES).
 
Method Summary
 int GetErrorCode()
          Returns the error code associated with this error (from PT_RESULTCODES).
 java.lang.String GetMessage()
          Override the generated message to return one with an error code (from PT_RESULTCODES).
 java.lang.Exception GetNestedException()
          Deprecated. Should use XPException GetInnerException().
 
Methods inherited from class com.plumtree.openfoundation.util.XPException
exceptionToString, ExceptionToString, GetInnerException, GetInstance, GetInstance, getMessage, GetStackTrace, printStackTrace, PrintStackTrace, printStackTrace, ToString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PTException

public PTException(java.lang.String message,
                   int code)
Create a PTException object containing the specified error message and error code (from PT_RESULTCODES).

Parameters:
message - the error message associated with this error
code - the error code associated with this error

PTException

public PTException(java.lang.Exception e,
                   java.lang.String message,
                   int code)
Crate a PTException that wraps an underlying native Exception object, and contains a Plumtree specific error message and error code (from PT_RESULTCODES).

Parameters:
e - the native Exception to wrap
message - the error message associated with this error
code - the error code associated with this error
Method Detail

GetErrorCode

public int GetErrorCode()
Returns the error code associated with this error (from PT_RESULTCODES).

Returns:
int

GetNestedException

public java.lang.Exception GetNestedException()
Deprecated. Should use XPException GetInnerException().

Returns the native Exception that this class wraps, or null if not wrapping a native Exception

Returns:
Exception the underlying Exception object

GetMessage

public java.lang.String GetMessage()
Override the generated message to return one with an error code (from PT_RESULTCODES).

Overrides:
GetMessage in class com.plumtree.openfoundation.util.XPException
Returns:
Message with an error code.


Copyright © 2008 Plumtree Software Inc. All Rights Reserved.