Package com.linecorp.armeria.common
Class ProtocolViolationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.linecorp.armeria.common.ProtocolViolationException
-
- All Implemented Interfaces:
Serializable
public class ProtocolViolationException extends RuntimeException
ARuntimeException
raised when a remote peer violated the currentSessionProtocol
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description ProtocolViolationException()
Creates a new exception.ProtocolViolationException(String message)
Creates a new instance with the specifiedmessage
.ProtocolViolationException(String message, Throwable cause)
Creates a new instance with the specifiedmessage
andcause
.protected
ProtocolViolationException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)
Creates a new instance with the specifiedmessage
,cause
, suppression enabled or disabled, and writable stack trace enabled or disabled.ProtocolViolationException(Throwable cause)
Creates a new instance with the specifiedcause
.
-
Method Summary
Modifier and Type Method Description Throwable
fillInStackTrace()
-
Methods inherited from class java.lang.Throwable
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ProtocolViolationException
public ProtocolViolationException()
Creates a new exception.
-
ProtocolViolationException
public ProtocolViolationException(@Nullable String message)
Creates a new instance with the specifiedmessage
.
-
ProtocolViolationException
public ProtocolViolationException(@Nullable String message, @Nullable Throwable cause)
Creates a new instance with the specifiedmessage
andcause
.
-
ProtocolViolationException
public ProtocolViolationException(@Nullable Throwable cause)
Creates a new instance with the specifiedcause
.
-
ProtocolViolationException
protected ProtocolViolationException(@Nullable String message, @Nullable Throwable cause, boolean enableSuppression, boolean writableStackTrace)
Creates a new instance with the specifiedmessage
,cause
, suppression enabled or disabled, and writable stack trace enabled or disabled.
-
-
Method Detail
-
fillInStackTrace
public Throwable fillInStackTrace()
- Overrides:
fillInStackTrace
in classThrowable
-
-