Enum Class SignerErrorCode
- All Implemented Interfaces:
br.ufsc.labsec.pbad.ykue_utils.exceptions.ExceptionCode<SignerErrorException>, Serializable, Comparable<SignerErrorCode>, Constable
public enum SignerErrorCode
extends Enum<SignerErrorCode>
implements br.ufsc.labsec.pbad.ykue_utils.exceptions.ExceptionCode<SignerErrorException>
Catálogo de erros do Signer.
Cada item define a mensagem pública, a severidade de log e o status HTTP
associados a uma falha. Informações variáveis de uma ocorrência devem ser
fornecidas como detalhe em SignerErrorException
Erros originados no Ykue não são duplicados aqui. Eles usam o contrato
ExceptionCode do próprio Ykue e são preservados pela camada de API.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndica se o código descreve uma falha no processamento da requisição HTTP.level()Retorna a severidade usada ao registrar a ocorrência no Signer.booleanAplica a política de log do Signer: inclui a causa para erros de requisição ou para erros com severidadeLevel.SEVERE.toException(String additionalInfo, Throwable cause) static SignerErrorCodeReturns the enum constant of this class with the specified name.static SignerErrorCode[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface br.ufsc.labsec.pbad.ykue_utils.exceptions.ExceptionCode
name, toException, toException
-
Enum Constant Details
-
E001Req
-
E002Req
-
E003Req
-
E004Req
-
E005Req
-
E006Req
-
E007Req
-
E008Req
-
E009Req
-
E010Req
-
E011Req
-
E012Req
-
E001Keys
-
E002Keys
-
E003Keys
-
E004Keys
-
E005Keys
-
E006Keys
-
E001Auth
-
E002Auth
-
E003Auth
-
E004Auth
-
E001Psc
-
E002Psc
-
E001Signer
-
E002Signer
-
E003Signer
-
E004Signer
-
E005Signer
-
E006Signer
-
E007Signer
-
E008Signer
-
E009Signer
-
E010Signer
-
E011Signer
-
E012Signer
-
E013Signer
-
E014Signer
-
E015Signer
-
E016Signer
-
E017Signer
-
E001App
-
E002App
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
toException
- Specified by:
toExceptionin interfacebr.ufsc.labsec.pbad.ykue_utils.exceptions.ExceptionCode<SignerErrorException>
-
httpStatus
- Specified by:
httpStatusin interfacebr.ufsc.labsec.pbad.ykue_utils.exceptions.ExceptionCode<SignerErrorException>
-
description
- Specified by:
descriptionin interfacebr.ufsc.labsec.pbad.ykue_utils.exceptions.ExceptionCode<SignerErrorException>
-
level
Retorna a severidade usada ao registrar a ocorrência no Signer. -
isRequestError
public boolean isRequestError()Indica se o código descreve uma falha no processamento da requisição HTTP. -
shouldLogStackTrace
public boolean shouldLogStackTrace()Aplica a política de log do Signer: inclui a causa para erros de requisição ou para erros com severidadeLevel.SEVERE.
-