com.aranai.dungeonator.datastore
Class DataStoreException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.aranai.dungeonator.datastore.DataStoreException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
DataStoreDeleteException, DataStoreGetException, DataStoreSaveException

public class DataStoreException
extends java.lang.Exception

See Also:
Serialized Form

Field Summary
private  java.lang.String location
          The location at which a failure occurred.
private  java.lang.String reason
          The reason for failure.
private static long serialVersionUID
          The Constant serialVersionUID.
 
Constructor Summary
DataStoreException()
          Instantiates a new data store exception with default entries.
DataStoreException(java.lang.String reason, java.lang.String location)
          Instantiates a new data store exception with a specified reason for failure and the location at which the failure occurred.
 
Method Summary
 java.lang.String getLocation()
          Gets the save location.
 java.lang.String getReason()
          Gets the reason for failure.
 
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
 

Field Detail

serialVersionUID

private static final long serialVersionUID
The Constant serialVersionUID.

See Also:
Constant Field Values

reason

private java.lang.String reason
The reason for failure.


location

private java.lang.String location
The location at which a failure occurred. Format will vary depending on data store type.

Constructor Detail

DataStoreException

public DataStoreException()
Instantiates a new data store exception with default entries.


DataStoreException

public DataStoreException(java.lang.String reason,
                          java.lang.String location)
Instantiates a new data store exception with a specified reason for failure and the location at which the failure occurred.

Parameters:
reason - the reason
location - the location
Method Detail

getReason

public java.lang.String getReason()
Gets the reason for failure.

Returns:
the reason

getLocation

public java.lang.String getLocation()
Gets the save location. The format will vary depending on the data store type.

Returns:
the save location