public final class ErrorTrait extends StringTrait
Modifier and Type | Class and Description |
---|---|
static class |
ErrorTrait.Provider |
Constructor and Description |
---|
ErrorTrait(java.lang.String value) |
ErrorTrait(java.lang.String value,
SourceLocation sourceLocation) |
Modifier and Type | Method and Description |
---|---|
int |
getDefaultHttpStatusCode()
Returns the recommended default HTTP status code of the error.
|
boolean |
isClientError() |
boolean |
isServerError() |
createNode, getValue
equals, getSourceLocation, hashCode, setNodeCache, toNode, toShapeId, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
flatMapStream, getIdiomaticTraitName, getIdiomaticTraitName, isSynthetic, makeAbsoluteName, makeAbsoluteName
public static final ShapeId ID
public ErrorTrait(java.lang.String value, SourceLocation sourceLocation)
public ErrorTrait(java.lang.String value)
public int getDefaultHttpStatusCode()
public boolean isClientError()
public boolean isServerError()