Package edu.suffolk.litlab.efsp.tyler
Class TylerErrorCodes
java.lang.Object
edu.suffolk.litlab.efsp.tyler.TylerErrorCodes
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<TylerErrorCodes.Error> checkErrors(ErrorType error) Returns true on errors from the Tyler / Admin side of the API.static booleanhasError(BaseResponseType resp) static jakarta.ws.rs.core.ResponsemakeResponse(BaseResponseType resp, Supplier<jakarta.ws.rs.core.Response> defaultRespFunc) static jakarta.ws.rs.core.ResponsemapTylerCodesToHttp(Optional<TylerErrorCodes.Error> maybeError, Supplier<jakarta.ws.rs.core.Response> defaultRespFunc) static boolean
-
Field Details
-
tylerToHttp
-
-
Constructor Details
-
TylerErrorCodes
public TylerErrorCodes()
-
-
Method Details
-
hasError
-
makeResponse
public static jakarta.ws.rs.core.Response makeResponse(BaseResponseType resp, Supplier<jakarta.ws.rs.core.Response> defaultRespFunc) -
checkErrors
Returns true on errors from the Tyler / Admin side of the API. -
shouldLogError
-
mapTylerCodesToHttp
public static jakarta.ws.rs.core.Response mapTylerCodesToHttp(Optional<TylerErrorCodes.Error> maybeError, Supplier<jakarta.ws.rs.core.Response> defaultRespFunc)
-