Class Errors

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.Errors
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2025-01-09T21:22:15.850Z") @Stability(Stable) public class Errors extends software.amazon.jsii.JsiiObject
Helper to check if an error is a SynthesisErrors.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.*;
 Errors errors = new Errors();
 
  • Nested Class Summary

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
     
     
    protected
    Errors(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    Errors(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static Boolean
    Test whether the given errors is a ConstructionError.
    static Boolean
    Test whether the given error is a ValidationError.

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Constructor Details

    • Errors

      protected Errors(software.amazon.jsii.JsiiObjectRef objRef)
    • Errors

      protected Errors(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • Errors

      @Stability(Stable) public Errors()
  • Method Details

    • isConstructError

      @Stability(Stable) @NotNull public static Boolean isConstructError(@NotNull Object x)
      Test whether the given errors is a ConstructionError.

      Parameters:
      x - This parameter is required.
    • isValidationError

      @Stability(Stable) @NotNull public static Boolean isValidationError(@NotNull Object x)
      Test whether the given error is a ValidationError.

      Parameters:
      x - This parameter is required.