Autopsy  4.19.3
Graphical digital forensics platform for The Sleuth Kit and other tools.
Public Member Functions | Private Attributes | Static Private Attributes | List of all members
org.sleuthkit.autopsy.exceptions.AutopsyException Class Referenceabstract

Inherits Exception.

Inherited by org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoException.

Public Member Functions

 AutopsyException (String message)
 
 AutopsyException (String message, String userMessage)
 
 AutopsyException (String message, Throwable cause)
 
 AutopsyException (String message, String userMessage, Throwable cause)
 
String getUserMessage ()
 

Private Attributes

final String userMessage
 

Static Private Attributes

static final long serialVersionUID = 1L
 

Detailed Description

An exception to be thrown which can contain a user-friendly message.

Definition at line 24 of file AutopsyException.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.exceptions.AutopsyException.AutopsyException ( String  message)

Constructs an AutopsyException with identical exception and user-friendly messages.

Parameters
messageException message.

Definition at line 36 of file AutopsyException.java.

org.sleuthkit.autopsy.exceptions.AutopsyException.AutopsyException ( String  message,
String  userMessage 
)

Constructs an AutopsyException with an exception message and user-friendly message.

Parameters
messageException message.
userMessageThe user-friendly message to include in this exception.

Definition at line 48 of file AutopsyException.java.

References org.sleuthkit.autopsy.exceptions.AutopsyException.userMessage.

org.sleuthkit.autopsy.exceptions.AutopsyException.AutopsyException ( String  message,
Throwable  cause 
)

Constructs an AutopsyException with identical exception and user-friendly messages.

Parameters
messageException message.
causeException cause.

Definition at line 60 of file AutopsyException.java.

org.sleuthkit.autopsy.exceptions.AutopsyException.AutopsyException ( String  message,
String  userMessage,
Throwable  cause 
)

Constructs an AutopsyException with an exception message, a user-friendly messages, and a cause.

Parameters
messageException message.
userMessageThe user-friendly message to include in this exception.
causeException cause.

Definition at line 73 of file AutopsyException.java.

References org.sleuthkit.autopsy.exceptions.AutopsyException.userMessage.

Member Function Documentation

String org.sleuthkit.autopsy.exceptions.AutopsyException.getUserMessage ( )

Get the user-friendly message if one exists.

Returns
The user-friendly message if one was explicitly set, otherwise returns the exception message.

Definition at line 84 of file AutopsyException.java.

References org.sleuthkit.autopsy.exceptions.AutopsyException.userMessage.

Referenced by org.sleuthkit.autopsy.centralrepository.eventlisteners.Installer.doMessageBoxIfRunningInGUI(), and org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.updatedDbSchema().

Member Data Documentation

final long org.sleuthkit.autopsy.exceptions.AutopsyException.serialVersionUID = 1L
staticprivate

Definition at line 26 of file AutopsyException.java.

final String org.sleuthkit.autopsy.exceptions.AutopsyException.userMessage
private

The documentation for this class was generated from the following file:

Copyright © 2012-2022 Basis Technology. Generated on: Tue Jun 27 2023
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.