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, symbolcontext, fileManifest, symbolProviderconnectedShapes, model, operations, service, settingspublic ErrorTrait errorTrait()
error trait.
This is equivalent to calling shape().expectTrait(ErrorTrait.class).
ErrorTrait of the error.