Class LambdaAbortException
The LambdaAbortException class is used to exit a Lambda function with a processing error, but without reporting the error to the log aggregator. This behavior is useful for intentionally triggering the native retry logic of the AWS Lambda runtime without causing false-positive errors to appear in the logs.
Implements
Inherited Members
Namespace: LambdaSharp.Exceptions
Assembly: LambdaSharp.Logging.dll
Syntax
public class LambdaAbortException : ALambdaException, ISerializable, ILambdaExceptionFingerprinter
Constructors
LambdaAbortException(String, Object[])
Initializes a LambdaAbortException instance with the specified exception message.
Declaration
public LambdaAbortException(string format, params object[] args)
Parameters
Type | Name | Description |
---|---|---|
System.String | format | The exception message. |
System.Object[] | args | Optional arguments for the exception message. |