Class AtpEntityNotFoundException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.qubership.atp.auth.springbootstarter.exceptions.AtpException
org.qubership.atp.auth.springbootstarter.exceptions.AtpEntityNotFoundException
- All Implemented Interfaces:
Serializable
@ResponseStatus(value=NOT_FOUND,
reason="ATP-0001")
public class AtpEntityNotFoundException
extends AtpException
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDefault parametrized message with EntityName and Reference field value parameters.static final StringDefault parametrized message with EntityName parameter.static final StringDefault parametrized message with EntityName, Reference field name and Reference field value parameters. -
Constructor Summary
ConstructorsConstructorDescriptionAtpEntityNotFoundException(String entity) Example: Failed to find Environment Info entity.AtpEntityNotFoundException(String entity, Object id) Example: Failed to find Environment Info entity by id: 123.AtpEntityNotFoundException(String entity, String refField, Object refFieldValue) Example: Failed to find Environment Info entity by execution request id: 322. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
DEFAULT_MESSAGE
Default parametrized message with EntityName parameter.- See Also:
-
DEFAULT_ID_MESSAGE
Default parametrized message with EntityName and Reference field value parameters.- See Also:
-
DEFAULT_REF_ID_MESSAGE
Default parametrized message with EntityName, Reference field name and Reference field value parameters.- See Also:
-
-
Constructor Details
-
AtpEntityNotFoundException
Example: Failed to find Environment Info entity.- Parameters:
entity- Entity name.
-
AtpEntityNotFoundException
Example: Failed to find Environment Info entity by id: 123.- Parameters:
entity- Entity nameid- Reference field value.
-
AtpEntityNotFoundException
Example: Failed to find Environment Info entity by execution request id: 322.- Parameters:
entity- Entity namerefField- Reference field namerefFieldValue- Reference field value.
-