*** This class provides Binary Compatibility only, not Source Compatibility ***
Package com.sas.services.webdav
Class DAVException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.sas.services.webdav.DAVException
- All Implemented Interfaces:
Serializable
@SASScope("ALL")
@BinaryCompatibilityOnly
public class DAVException
extends Exception
DAVException
Wrapper for any exception that might occur in the DAV resource code. At the moment this is a chained
exception, but once we have the information from the originating exception, there may be little point
in keeping a copy.
- Since:
- 1.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorDAVException(String msg) Constructs an instance for the specified exception message.DAVException(String msg, int httpStatusCode) Constructs an instance for the specified exception message and HTTP status code.DAVException(String msg, Exception exception) Constructs an instance for the specified exception message and the underlying exception.DAVException(String msg, Exception exception, int httpStatusCode) Constructs an instance for the specified exception message, underlying exception and HTTP status code. -
Method Summary
Modifier and TypeMethodDescriptionfinal ExceptionGets the underlying exception.intGets the HTTP status code.voidsetStatusCode(int statusCode) Sets the HTTP status code.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
DAVException
public DAVException()Default constructor -
DAVException
public DAVException(String msg) Constructs an instance for the specified exception message.- Parameters:
msg- Message for the exception.
-
DAVException
public DAVException(String msg, int httpStatusCode) Constructs an instance for the specified exception message and HTTP status code.- Parameters:
msg- Message for the exception.httpStatusCode- HTTP status code.- Since:
- 9.4m8
- See Also:
-
DAVException
public DAVException(String msg, Exception exception) Constructs an instance for the specified exception message and the underlying exception.- Parameters:
msg- Message for the exception.exception- The underlying exception.- See Also:
-
DAVException
public DAVException(String msg, Exception exception, int httpStatusCode) Constructs an instance for the specified exception message, underlying exception and HTTP status code.- Parameters:
msg- Message for the exception.exception- The underlying exception.httpStatusCode- HTTP status code.- Since:
- 9.4m8
- See Also:
-
-
Method Details
-
getException
public final Exception getException()Gets the underlying exception.- Returns:
- Underlying exception or
nullif there is no underlying exception.
-
getStatusCode
public int getStatusCode()Gets the HTTP status code.- Returns:
- The HTTP status code or
0if not set.
-
setStatusCode
public void setStatusCode(int statusCode) Sets the HTTP status code.- Parameters:
statusCode- The HTTP status code.
-