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, getValueequals, getSourceLocation, hashCode, setNodeCache, toNode, toShapeId, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitflatMapStream, getIdiomaticTraitName, getIdiomaticTraitName, isSynthetic, makeAbsoluteName, makeAbsoluteNamepublic 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()