C
- CodegenContext type.S
- Codegen settings type.public final class GenerateErrorDirective<C extends CodegenContext<S,?>,S> extends ShapeDirective<StructureShape,C,S>
Modifier and Type | Method and Description |
---|---|
ErrorTrait |
errorTrait()
Gets the
error trait. |
shape, symbol
context, fileManifest, symbolProvider
connectedShapes, model, operations, service, settings
public ErrorTrait errorTrait()
error
trait.
This is equivalent to calling shape().expectTrait(ErrorTrait.class)
.
ErrorTrait
of the error.