Class AwsLambdaRuntimeApiError

java.lang.Object
io.micronaut.function.aws.runtime.AwsLambdaRuntimeApiError

@Introspected public class AwsLambdaRuntimeApiError extends Object
AWS Lambda Runtime Interface Error. It is used to communicate errors thrown during function execution.
Since:
2.0.0
Author:
sdelamo
  • Constructor Details

    • AwsLambdaRuntimeApiError

      public AwsLambdaRuntimeApiError()
      Constructor.
    • AwsLambdaRuntimeApiError

      public AwsLambdaRuntimeApiError(@Nullable @Nullable String errorMessage, @Nullable @Nullable String errorType)
      Parameters:
      errorMessage - Error Message
      errorType - Error Type
  • Method Details

    • getErrorMessage

      @Nullable public @Nullable String getErrorMessage()
      Returns:
      Error Message
    • setErrorMessage

      public void setErrorMessage(@Nullable @Nullable String errorMessage)
      Parameters:
      errorMessage - Error message
    • getErrorType

      @Nullable public @Nullable String getErrorType()
      Returns:
      Error Type
    • setErrorType

      public void setErrorType(@Nullable @Nullable String errorType)
      Parameters:
      errorType - Error Type
    • toString

      public String toString()
      Overrides:
      toString in class Object