public class BadFetchProtocolResponsecodeError extends BadFetchError
EVENT_TYPE| Constructor and Description |
|---|
BadFetchProtocolResponsecodeError(java.lang.String usedProtocol,
int detectedResponseCode)
Constructs a new event with the event type as its detail message.
|
BadFetchProtocolResponsecodeError(java.lang.String usedProtocol,
int detectedResponseCode,
java.lang.String message)
Constructs a new event with the specified detail message. the given
detail message is expanded to the form
<getEventType()>: <message>. |
BadFetchProtocolResponsecodeError(java.lang.String usedProtocol,
int detectedResponseCode,
java.lang.String message,
java.lang.Throwable cause)
Constructs a new event with the specified detail message and cause.
|
BadFetchProtocolResponsecodeError(java.lang.String usedProtocol,
int detectedResponseCode,
java.lang.Throwable cause)
Constructs a new event with the specified cause and a detail message of
(cause==null ? |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendSpecificationDetails(java.lang.StringBuilder str)
Appends the protocol and response code to the type.
|
java.lang.String |
getProtocol()
Retrieve the protocol.
|
int |
getResponseCode()
Retrieve the protocol-specific response code.
|
getEventTypegetMessage, isTypepublic BadFetchProtocolResponsecodeError(java.lang.String usedProtocol,
int detectedResponseCode)
The usedProtocol and the detectedResponseCode
are used to construct the event type.
usedProtocol - The used protocol.detectedResponseCode - The protocol-specific response code.BadFetchError.getEventType()public BadFetchProtocolResponsecodeError(java.lang.String usedProtocol,
int detectedResponseCode,
java.lang.String message)
<getEventType()>: <message>.
The cause is not initialized.
The usedProtocol and the detectedResponseCode
are used to construct the event type.
usedProtocol - The used protocol.detectedResponseCode - The protocol-specific response code.message - The detail message.BadFetchError.getEventType()public BadFetchProtocolResponsecodeError(java.lang.String usedProtocol,
int detectedResponseCode,
java.lang.Throwable cause)
(cause==null ? getEventType() : cause.toString()) (which
typically contains the class and detail message of cause).
The usedProtocol and the detectedResponseCode
are used to construct the event type.
usedProtocol - The used protocol.detectedResponseCode - The protocol-specific response code.cause - The cause.BadFetchError.getEventType()public BadFetchProtocolResponsecodeError(java.lang.String usedProtocol,
int detectedResponseCode,
java.lang.String message,
java.lang.Throwable cause)
The usedProtocol and the detectedResponseCode
are used to construct the event type.
usedProtocol - The used protocol.detectedResponseCode - The protocol-specific response code.message - The detail message.cause - The cause.BadFetchError.getEventType()public final java.lang.String getProtocol()
public final int getResponseCode()
getProtocol()protected final void appendSpecificationDetails(java.lang.StringBuilder str)
<BadFetchError.EVENT_TYPE>.<protocol>.<responseCode>
appendSpecificationDetails in class BadFetchErrorstr - type prefix.