com.liveperson.faas.client.FaaSLambdaErrorCodes Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of functions-client Show documentation
Show all versions of functions-client Show documentation
Functions client for invoking lambdas via the eventsource gateway (a.k.a Asgard)
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;
}
}