All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.liveperson.faas.client.FaaSLambdaErrorCodes Maven / Gradle / Ivy

Go to download

Functions client for invoking lambdas via the eventsource gateway (a.k.a Asgard)

There is a newer version: 1.2.3
Show newest version
package com.liveperson.faas.client;

enum FaaSLambdaErrorCodes {
    CUSTOM_FAILURE("com.liveperson.faas.handler.custom-failure"),
    RUNTIME_EXCEPTION("com.liveperson.faas.handler.runtime-exception"),
    EXECUTION_WINDOW_EXCEEDED("com.liveperson.faas.handler.executiontime-exceeded"),
    LOG_LIMIT_REACHED("com.liveperson.faas.handler.log-limit-reached");

    private String code;

    FaaSLambdaErrorCodes(String code) {
        this.code = code;
    }

    public String getCode() {
        return code;
    }

    public static boolean contains(String test) {
        for (FaaSLambdaErrorCodes c : FaaSLambdaErrorCodes.values()) {
            if (c.getCode().equals(test)) {
                return true;
            }
        }

        return false;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy