Class HTTPDAOException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.deltava.util.ControllerException
org.deltava.dao.DAOException
org.deltava.dao.http.HTTPDAOException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
GetSimBrief.SimBriefException
An Exception thrown by HTTP Data Access Objects.
- Since:
- 4.0
- Version:
- 7.0
- Author:
- Luke
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionHTTPDAOException
(String msg, int code) Creates a new DAO Exception.Creates a new DAO Exception. -
Method Summary
Methods inherited from class org.deltava.util.ControllerException
getForwardURL, getLogStackDump, isSuppressed, isWarning, setForwardURL, setLogStackDump, setStatusCode, setSuppressed, setWarning
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
HTTPDAOException
-
HTTPDAOException
HTTPDAOException(String msg, int code) Creates a new DAO Exception.- Parameters:
msg
- the messagecode
- the HTTP status code
-
-
Method Details
-
getStatusCode
public int getStatusCode()Returns the HTTP status code.- Overrides:
getStatusCode
in classControllerException
- Returns:
- the status code, or zero if not set
- See Also:
-