Class GenerateErrorDirective<C extends CodegenContext<S,​?,​?>,​S>

    • Method Detail

      • errorTrait

        public ErrorTrait errorTrait()
        Gets the error trait.

        This is equivalent to calling shape().expectTrait(ErrorTrait.class).

        Returns:
        Gets the ErrorTrait of the error.