Class DbAclUnCheckedExceptionMapper
java.lang.Object
com.illumon.iris.db.v2.permissions.rs.BaseExceptionMapper<DbAclUncheckedException>
com.illumon.iris.db.v2.permissions.rs.exceptions.DbAclUnCheckedExceptionMapper
- All Implemented Interfaces:
io.deephaven.shadow.resteasy.jakarta.ws.rs.ext.ExceptionMapper<DbAclUncheckedException>
@Provider
public class DbAclUnCheckedExceptionMapper
extends BaseExceptionMapper<DbAclUncheckedException>
The
ExceptionMapper for all DbAclUncheckedException
exceptions raised in the acl api. Subclass of BaseExceptionMapper that helps populate
AuditEvent with error information.-
Field Summary
Fields inherited from class com.illumon.iris.db.v2.permissions.rs.BaseExceptionMapper
request -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetCommandName(@NotNull DbAclUncheckedException exception) The name of the command the request uri points to, if NPE or generic error would include the requestURIprotected StringgetErrorDetails(@NotNull DbAclUncheckedException exception) Part of the error message that is logged, allows implementations to customize what can be includedprotected io.deephaven.shadow.resteasy.jakarta.ws.rs.core.Response.StatusgetResponseStatus(@NotNull DbAclUncheckedException exception) Implementations should return the appropriate Response Status to build and propagate in theResponseprotected voidupdateAuditEventBuilder(@NotNull AuditEventBuilder aeBuilder, @NotNull DbAclUncheckedException exception) The implementations can add customization detail of what to log for inAuditEventMethods inherited from class com.illumon.iris.db.v2.permissions.rs.BaseExceptionMapper
handleShadowExceptionMappers, toResponse
-
Constructor Details
-
DbAclUnCheckedExceptionMapper
public DbAclUnCheckedExceptionMapper()
-
-
Method Details
-
getCommandName
Description copied from class:BaseExceptionMapperThe name of the command the request uri points to, if NPE or generic error would include the requestURI- Specified by:
getCommandNamein classBaseExceptionMapper<DbAclUncheckedException>- Parameters:
exception- The exception that has occurred- Returns:
- name of the command the request uri points to
-
getErrorDetails
Description copied from class:BaseExceptionMapperPart of the error message that is logged, allows implementations to customize what can be included- Specified by:
getErrorDetailsin classBaseExceptionMapper<DbAclUncheckedException>- Parameters:
exception- The exception that has occurred- Returns:
- string with customized details about the specific error
-
getResponseStatus
protected io.deephaven.shadow.resteasy.jakarta.ws.rs.core.Response.Status getResponseStatus(@NotNull @NotNull DbAclUncheckedException exception) Description copied from class:BaseExceptionMapperImplementations should return the appropriate Response Status to build and propagate in theResponse- Specified by:
getResponseStatusin classBaseExceptionMapper<DbAclUncheckedException>- Parameters:
exception- The thrown exception used to extract the response status- Returns:
- The Response Status for the exception
-
updateAuditEventBuilder
protected void updateAuditEventBuilder(@NotNull @NotNull AuditEventBuilder aeBuilder, @NotNull @NotNull DbAclUncheckedException exception) Description copied from class:BaseExceptionMapperThe implementations can add customization detail of what to log for inAuditEvent- Specified by:
updateAuditEventBuilderin classBaseExceptionMapper<DbAclUncheckedException>- Parameters:
aeBuilder- The AuditEventBuilder instance being used in building the AuditEvent to logexception- The thrown exception
-