public class LockssRestServiceException extends RuntimeException
| Modifier | Constructor and Description |
|---|---|
|
LockssRestServiceException()
Default constructor.
|
|
LockssRestServiceException(org.springframework.http.HttpStatus httpStatus,
String message)
Constructor.
|
|
LockssRestServiceException(org.springframework.http.HttpStatus httpStatus,
String message,
String parsedRequest)
Constructor.
|
|
LockssRestServiceException(org.springframework.http.HttpStatus httpStatus,
String message,
String parsedRequest,
LocalDateTime utcTimestamp)
Constructor.
|
|
LockssRestServiceException(org.springframework.http.HttpStatus httpStatus,
String message,
Throwable cause)
Constructor.
|
protected |
LockssRestServiceException(org.springframework.http.HttpStatus httpStatus,
String message,
Throwable cause,
boolean enableSuppression,
boolean writableStackTrace)
Constructor.
|
protected |
LockssRestServiceException(org.springframework.http.HttpStatus httpStatus,
String message,
Throwable cause,
boolean enableSuppression,
boolean writableStackTrace,
String parsedRequest)
Constructor.
|
protected |
LockssRestServiceException(org.springframework.http.HttpStatus httpStatus,
String message,
Throwable cause,
boolean enableSuppression,
boolean writableStackTrace,
String parsedRequest,
LocalDateTime utcTimestamp)
Constructor.
|
|
LockssRestServiceException(org.springframework.http.HttpStatus httpStatus,
String message,
Throwable cause,
String parsedRequest)
Constructor.
|
|
LockssRestServiceException(org.springframework.http.HttpStatus httpStatus,
String message,
Throwable cause,
String parsedRequest,
LocalDateTime utcTimestamp)
Constructor.
|
|
LockssRestServiceException(org.springframework.http.HttpStatus httpStatus,
Throwable cause)
Constructor.
|
|
LockssRestServiceException(org.springframework.http.HttpStatus httpStatus,
Throwable cause,
String parsedRequest)
Constructor.
|
|
LockssRestServiceException(org.springframework.http.HttpStatus httpStatus,
Throwable cause,
String parsedRequest,
LocalDateTime utcTimestamp)
Constructor.
|
|
LockssRestServiceException(String message)
Constructor.
|
|
LockssRestServiceException(String message,
Throwable cause)
Constructor.
|
protected |
LockssRestServiceException(String message,
Throwable cause,
boolean enableSuppression,
boolean writableStackTrace)
Constructor.
|
|
LockssRestServiceException(Throwable cause)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.HttpStatus |
getHttpStatus()
Provides the HTTP response status.
|
String |
getParsedRequest()
Provides a copy of the parsed HTTP request contents.
|
LocalDateTime |
getUtcTimestamp()
Provides the exception date and time.
|
LockssRestServiceException |
setHttpStatus(org.springframework.http.HttpStatus httpStatus)
Sets the HTTP response status.
|
LockssRestServiceException |
setParsedRequest(String parsedRequest)
Sets the copy of the parsed HTTP request contents.
|
LockssRestServiceException |
setUtcTimestamp(LocalDateTime utcTimestamp)
Sets the exception date and time.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic LockssRestServiceException()
public LockssRestServiceException(String message)
message - A String with the detail message.public LockssRestServiceException(String message, Throwable cause)
message - A String with the detail message.cause - A Throwable with the cause.public LockssRestServiceException(Throwable cause)
cause - A Throwable with the cause.protected LockssRestServiceException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)
message - A String with the detail message.cause - A Throwable with the cause.enableSuppression - A boolean indicating whether suppression is enabled.writableStackTrace - A boolean indicating whether the stack trace should be writable.public LockssRestServiceException(org.springframework.http.HttpStatus httpStatus,
String message)
httpStatus - An HttpStatus with the HTTP response status.message - A String with the detail message.public LockssRestServiceException(org.springframework.http.HttpStatus httpStatus,
String message,
String parsedRequest)
httpStatus - An HttpStatus with the HTTP response status.message - A String with the detail message.parsedRequest - A String with a copy of the parsed HTTP request contents.public LockssRestServiceException(org.springframework.http.HttpStatus httpStatus,
String message,
String parsedRequest,
LocalDateTime utcTimestamp)
httpStatus - An HttpStatus with the HTTP response status.message - A String with the detail message.parsedRequest - A String with a copy of the parsed HTTP request contents.utcTimestamp - A LocalDateTime with the exception date and time.public LockssRestServiceException(org.springframework.http.HttpStatus httpStatus,
String message,
Throwable cause)
httpStatus - An HttpStatus with the HTTP response status.message - A String with the detail message.cause - A Throwable with the cause.public LockssRestServiceException(org.springframework.http.HttpStatus httpStatus,
String message,
Throwable cause,
String parsedRequest)
httpStatus - An HttpStatus with the HTTP response status.message - A String with the detail message.cause - A Throwable with the cause.parsedRequest - A String with a copy of the parsed HTTP request contents.public LockssRestServiceException(org.springframework.http.HttpStatus httpStatus,
String message,
Throwable cause,
String parsedRequest,
LocalDateTime utcTimestamp)
httpStatus - An HttpStatus with the HTTP response status.message - A String with the detail message.cause - A Throwable with the cause.parsedRequest - A String with a copy of the parsed HTTP request contents.utcTimestamp - A LocalDateTime with the exception date and time.public LockssRestServiceException(org.springframework.http.HttpStatus httpStatus,
Throwable cause)
httpStatus - An HttpStatus with the HTTP response status.cause - A Throwable with the cause.public LockssRestServiceException(org.springframework.http.HttpStatus httpStatus,
Throwable cause,
String parsedRequest)
httpStatus - An HttpStatus with the HTTP response status.cause - A Throwable with the cause.parsedRequest - A String with a copy of the parsed HTTP request contents.public LockssRestServiceException(org.springframework.http.HttpStatus httpStatus,
Throwable cause,
String parsedRequest,
LocalDateTime utcTimestamp)
httpStatus - An HttpStatus with the HTTP response status.cause - A Throwable with the cause.parsedRequest - A String with a copy of the parsed HTTP request contents.utcTimestamp - A LocalDateTime with the exception date and time.protected LockssRestServiceException(org.springframework.http.HttpStatus httpStatus,
String message,
Throwable cause,
boolean enableSuppression,
boolean writableStackTrace)
httpStatus - An HttpStatus with the HTTP response status.message - A String with the detail message.cause - A Throwable with the cause.enableSuppression - A boolean indicating whether suppression is enabled.writableStackTrace - A boolean indicating whether the stack trace should be writable.protected LockssRestServiceException(org.springframework.http.HttpStatus httpStatus,
String message,
Throwable cause,
boolean enableSuppression,
boolean writableStackTrace,
String parsedRequest)
httpStatus - An HttpStatus with the HTTP response status.message - A String with the detail message.cause - A Throwable with the cause.enableSuppression - A boolean indicating whether suppression is enabled.writableStackTrace - A boolean indicating whether the stack trace should be writable.parsedRequest - A String with a copy of the parsed HTTP request contents.protected LockssRestServiceException(org.springframework.http.HttpStatus httpStatus,
String message,
Throwable cause,
boolean enableSuppression,
boolean writableStackTrace,
String parsedRequest,
LocalDateTime utcTimestamp)
httpStatus - An HttpStatus with the HTTP response status.message - A String with the detail message.cause - A Throwable with the cause.enableSuppression - A boolean indicating whether suppression is enabled.writableStackTrace - A boolean indicating whether the stack trace should be writable.parsedRequest - A String with a copy of the parsed HTTP request contents.utcTimestamp - A LocalDateTime with the exception date and time.public org.springframework.http.HttpStatus getHttpStatus()
public LockssRestServiceException setHttpStatus(org.springframework.http.HttpStatus httpStatus)
httpStatus - An HttpStatus with the HTTP response status.public String getParsedRequest()
public LockssRestServiceException setParsedRequest(String parsedRequest)
parsedRequest - A String with a copy of the parsed HTTP request contents.public LocalDateTime getUtcTimestamp()
public LockssRestServiceException setUtcTimestamp(LocalDateTime utcTimestamp)
utcTimestamp - A LocalDateTime with the exception date and time.Copyright © 2000–2019 LOCKSS Program. All rights reserved.