play.exceptions
Class DatabaseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
play.exceptions.PlayException
play.exceptions.DatabaseException
- All Implemented Interfaces:
- Serializable, SourceAttachment
public class DatabaseException
- extends PlayException
- implements SourceAttachment
Database error
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
DatabaseException
public DatabaseException(String message)
DatabaseException
public DatabaseException(String message,
Throwable cause)
getErrorTitle
public String getErrorTitle()
- Specified by:
getErrorTitle in class PlayException
getErrorDescription
public String getErrorDescription()
- Specified by:
getErrorDescription in class PlayException
getSourceFile
public String getSourceFile()
- Specified by:
getSourceFile in interface SourceAttachment- Overrides:
getSourceFile in class PlayException
getSource
public List<String> getSource()
- Specified by:
getSource in interface SourceAttachment
getLineNumber
public Integer getLineNumber()
- Specified by:
getLineNumber in interface SourceAttachment- Overrides:
getLineNumber in class PlayException
isSourceAvailable
public boolean isSourceAvailable()
- Overrides:
isSourceAvailable in class PlayException
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly