Primavera Integration API 7.0

com.primavera
Class ServerException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.primavera.PrimaveraException
              extended by com.primavera.ServerException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
PhoenixException

public class ServerException
extends PrimaveraException

Base class for all server-side exceptions

See Also:
Serialized Form

Constructor Summary
ServerException(java.lang.String strMessage)
          Class constructor specifying a detailed message.
ServerException(java.lang.String strMessage, java.lang.Throwable thE)
          Class constructor specifying a detailed message and the original thrown exception.
 
Method Summary
 java.lang.Object getSource()
          Gets the source for this exception, if any.
 void setSource(java.lang.Object obj)
          Sets the source for this exception.
 
Methods inherited from class com.primavera.PrimaveraException
getOriginalException, getStackTrace, isSQLExceptionThrown, printStackTrace, printStackTrace, printStackTrace, removeOriginalException
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServerException

public ServerException(java.lang.String strMessage,
                       java.lang.Throwable thE)
Class constructor specifying a detailed message and the original thrown exception.

Parameters:
strMessage - the detailed message of this exception
thE - the originally thrown exception

ServerException

public ServerException(java.lang.String strMessage)
Class constructor specifying a detailed message.

Parameters:
strMessage - the message of this exception
Method Detail

getSource

public java.lang.Object getSource()
Gets the source for this exception, if any. For BatchExceptions, the source will be an Integer representing the index of the business object for which an exception occurred.

Returns:
the source object

setSource

public void setSource(java.lang.Object obj)
Sets the source for this exception. For BatchExceptions, the source will be an Integer representing the index of the business object for which an exception occurred.

Parameters:
obj - the source object

Primavera Integration API 7.0

Copyright © 2003, 2009, Oracle and/or its affiliates. All rights reserved.