com.sap.conn.jco.ext
Class DataProviderException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.sap.conn.jco.ext.DataProviderException
All Implemented Interfaces:
java.io.Serializable

public class DataProviderException
extends java.lang.RuntimeException

A DataProviderException can be thrown by a DestinationDataProvider or ServerDataProvider in order to signal severe issues in an existing configuration or some other internal error, like a wrong setup.

See Also:
Serialized Form

Nested Class Summary
static class DataProviderException.Reason
          An enumeration for describing the reason of a DataProviderException.
 
Constructor Summary
DataProviderException(DataProviderException.Reason reason, java.lang.String message, java.lang.Throwable causedBy)
          Creates a new instance of a DataProviderException with the given reason, message and potentially a cause exception.
DataProviderException(DataProviderException.Reason reason, java.lang.Throwable causedBy)
          Creates a new instance of a DataProviderException with the given reason, and potentially a cause exception.
 
Method Summary
 DataProviderException.Reason getReason()
          Returns the reason associated with that exception.
 java.lang.String toString()
          Returns an adopted string representation for the DataProviderException instance.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataProviderException

public DataProviderException(DataProviderException.Reason reason,
                             java.lang.String message,
                             java.lang.Throwable causedBy)
Creates a new instance of a DataProviderException with the given reason, message and potentially a cause exception.

Parameters:
reason - reason for exception
message - exception message
causedBy - causing exception, may be null

DataProviderException

public DataProviderException(DataProviderException.Reason reason,
                             java.lang.Throwable causedBy)
Creates a new instance of a DataProviderException with the given reason, and potentially a cause exception.

Parameters:
reason - reason for exception
causedBy - causing exception, may be null
Method Detail

getReason

public DataProviderException.Reason getReason()
Returns the reason associated with that exception.

Returns:
the reason associated with that exception.

toString

public java.lang.String toString()
Returns an adopted string representation for the DataProviderException instance.

Overrides:
toString in class java.lang.Throwable
Returns:
a string representation for the DataProviderException instance.


Copyright © 2008-2014 SAP AG. All Rights Reserved.