de.smartics.properties.spi.config.ds
Class DataSourceException

Package class diagram package DataSourceException
java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by de.smartics.properties.api.core.app.PropertyRootException
                  extended by de.smartics.properties.spi.config.ds.DataSourceException
All Implemented Interfaces:
Serializable

public class DataSourceException
     
     
extends PropertyRootException

Signals problems with accessing a data source.

See Also:
Serialized Form

Constructor Summary
DataSourceException(String message, String dataSourceId)
          Convenience constructor without a root cause.
DataSourceException(String message, Throwable cause, String dataSourceId)
          Constructor.
DataSourceException(Throwable cause, String dataSourceId)
          Convenience constructor without a message.
 
Method Summary
 String getDataSourceId()
          Returns the identifier of the data source.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataSourceException

public DataSourceException(String message,
                           String dataSourceId)
Convenience constructor without a root cause.

Parameters:
message - the detail message (which is saved for later retrieval by the Throwable.getMessage() method).
dataSourceId - the identifier of the data source.

DataSourceException

public DataSourceException(Throwable cause,
                           String dataSourceId)
Convenience constructor without a message.

Parameters:
cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
dataSourceId - the identifier of the data source.

DataSourceException

public DataSourceException(String message,
                           Throwable cause,
                           String dataSourceId)
Constructor.

Parameters:
message - the detail message (which is saved for later retrieval by the Throwable.getMessage() method).
cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
dataSourceId - the identifier of the data source.
Method Detail

getDataSourceId

public final String getDataSourceId()
Returns the identifier of the data source. Usually this is the connection URL plus any other identifying information.

Returns:
the identifier of the data source.


Copyright © 2012-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.