Class DbAclUncheckedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.deephaven.UncheckedDeephavenException
com.illumon.iris.db.v2.permissions.rs.exceptions.DbAclUncheckedException
- All Implemented Interfaces:
DeephavenAclRestApiError
,Serializable
public class DbAclUncheckedException
extends UncheckedDeephavenException
implements DeephavenAclRestApiError
Known error conditions raised as unchecked exceptions while processing Acl Rest Api will throw this error. The error
implements
DeephavenAclRestApiError
that allows customized audit information to be captured- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDbAclUncheckedException
(io.deephaven.shadow.resteasy.javax.ws.rs.core.Response.Status responseStatus, String commandName, String commandDetails) Constructs a new exception withnull
as its detail message.DbAclUncheckedException
(String reason, io.deephaven.shadow.resteasy.javax.ws.rs.core.Response.Status responseStatus, String commandName, String commandDetails) Constructor that supports taking a detailed message describing the error.DbAclUncheckedException
(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace, io.deephaven.shadow.resteasy.javax.ws.rs.core.Response.Status responseStatus, String commandName, String commandDetails) Constructor that builds aDbAclUncheckedException
using the passed in message, optional cause, suppression indicator and writable stacktrace flag.DbAclUncheckedException
(String reason, Throwable cause, io.deephaven.shadow.resteasy.javax.ws.rs.core.Response.Status responseStatus, String commandName, String commandDetails) Constructor that builds aDbAclUncheckedException
using the passed in message and optional cause.DbAclUncheckedException
(Throwable cause, io.deephaven.shadow.resteasy.javax.ws.rs.core.Response.Status responseStatus, String commandName, String commandDetails) Constructor that builds aDbAclUncheckedException
using the specified cause. -
Method Summary
Modifier and TypeMethodDescriptionCustomized details that identifies the error, this will be logged in the AuditEventLogger under details columnIdentifies theDbAclWriter
method invoked by acl rest api request.io.deephaven.shadow.resteasy.javax.ws.rs.core.Response.Status
Identifies the ResponseStatus returned in API ResponseMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
DbAclUncheckedException
public DbAclUncheckedException(@NotNull io.deephaven.shadow.resteasy.javax.ws.rs.core.Response.Status responseStatus, String commandName, String commandDetails) Constructs a new exception withnull
as its detail message. The cause is not initialized, and may subsequently be initialized by a call toThrowable.initCause(java.lang.Throwable)
.- Parameters:
responseStatus
- The Response status that will be propagated to clientscommandName
- The failed command name for audit logscommandDetails
- Details related to the error for audit logs
-
DbAclUncheckedException
public DbAclUncheckedException(@NotNull String reason, @NotNull io.deephaven.shadow.resteasy.javax.ws.rs.core.Response.Status responseStatus, String commandName, String commandDetails) Constructor that supports taking a detailed message describing the error. SeeRuntimeException(String)
- Parameters:
reason
- A detailed message describing the error.responseStatus
- The Response status that will be propagated to clientscommandName
- Optional failed command name for audit logscommandDetails
- Optional details related to the error for audit logs
-
DbAclUncheckedException
public DbAclUncheckedException(@Nullable Throwable cause, @NotNull io.deephaven.shadow.resteasy.javax.ws.rs.core.Response.Status responseStatus, String commandName, String commandDetails) Constructor that builds aDbAclUncheckedException
using the specified cause. SeeRuntimeException(Throwable)
- Parameters:
cause
- The passed in cause.responseStatus
- The Response status that will be propagated to clientscommandName
- Optional failed command name for audit logscommandDetails
- Optional details related to the error for audit logs
-
DbAclUncheckedException
public DbAclUncheckedException(@NotNull String reason, @Nullable Throwable cause, @NotNull io.deephaven.shadow.resteasy.javax.ws.rs.core.Response.Status responseStatus, @Nullable String commandName, @Nullable String commandDetails) Constructor that builds aDbAclUncheckedException
using the passed in message and optional cause. SeeRuntimeException(String, Throwable)
- Parameters:
reason
- The passed in message detailing the errorcause
- Optional cause, null would indicate the error is unknownresponseStatus
- The Response status that will be propagated to clientscommandName
- Optional failed command name for audit logscommandDetails
- Optional details related to the error for audit logs
-
DbAclUncheckedException
public DbAclUncheckedException(@NotNull String message, @Nullable Throwable cause, boolean enableSuppression, boolean writableStackTrace, @NotNull io.deephaven.shadow.resteasy.javax.ws.rs.core.Response.Status responseStatus, String commandName, String commandDetails) Constructor that builds aDbAclUncheckedException
using the passed in message, optional cause, suppression indicator and writable stacktrace flag. SeeRuntimeException(String, Throwable, boolean, boolean)
- Parameters:
message
- The passed in message detailing the errorcause
- Optional cause, null would indicate the error is unknownenableSuppression
- Boolean that indicates suppression is enabled or disabledwritableStackTrace
- Boolean that indicates if stacktrace is writableresponseStatus
- The Response status that will be propagated to clientscommandName
- Optional failed command name for audit logscommandDetails
- Optional details related to the error for audit logs
-
-
Method Details
-
getResponseStatus
public io.deephaven.shadow.resteasy.javax.ws.rs.core.Response.Status getResponseStatus()Description copied from interface:DeephavenAclRestApiError
Identifies the ResponseStatus returned in API Response- Specified by:
getResponseStatus
in interfaceDeephavenAclRestApiError
- Returns:
- The Response status that should be propagated to clients
-
getCommandName
Description copied from interface:DeephavenAclRestApiError
Identifies theDbAclWriter
method invoked by acl rest api request.- Specified by:
getCommandName
in interfaceDeephavenAclRestApiError
- Returns:
- the name of the command that caused the exception
-
getCommandDetails
Description copied from interface:DeephavenAclRestApiError
Customized details that identifies the error, this will be logged in the AuditEventLogger under details column- Specified by:
getCommandDetails
in interfaceDeephavenAclRestApiError
- Returns:
- customized details of the exception
-