Class GenerateErrorDirective<C extends CodegenContext<S,?,?>,S>
- java.lang.Object
- 
- software.amazon.smithy.codegen.core.directed.Directive<S>
- 
- software.amazon.smithy.codegen.core.directed.ContextualDirective<C,S>
- 
- software.amazon.smithy.codegen.core.directed.ShapeDirective<StructureShape,C,S>
- 
- software.amazon.smithy.codegen.core.directed.GenerateErrorDirective<C,S>
 
 
 
 
- 
- Type Parameters:
- C- CodegenContext type.
- S- Codegen settings type.
 
 public final class GenerateErrorDirective<C extends CodegenContext<S,?,?>,S> extends ShapeDirective<StructureShape,C,S> Directive used to generate an error.
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ErrorTraiterrorTrait()Gets theerrortrait.- 
Methods inherited from class software.amazon.smithy.codegen.core.directed.ShapeDirectiveshape, symbol
 - 
Methods inherited from class software.amazon.smithy.codegen.core.directed.ContextualDirectivecontext, fileManifest, symbolProvider
 - 
Methods inherited from class software.amazon.smithy.codegen.core.directed.DirectiveconnectedShapes, model, operations, service, settings
 
- 
 
- 
- 
- 
Method Detail- 
errorTraitpublic ErrorTrait errorTrait() Gets theerrortrait.This is equivalent to calling shape().expectTrait(ErrorTrait.class).- Returns:
- Gets the ErrorTraitof the error.
 
 
- 
 
-