public class ProjectFileException extends CoreException
Modifier and Type | Class and Description |
---|---|
static class |
ProjectFileException.Operation |
Constructor and Description |
---|
ProjectFileException(ProjectFileException.Operation operation,
TextGridProject project,
Throwable cause)
Creates a new project file exception.
|
ProjectFileException(ProjectFileException.Operation operation,
TextGridProject project,
Throwable cause,
String message,
Object... arguments)
Creates a new project file exception.
|
Modifier and Type | Method and Description |
---|---|
protected static IStatus |
createStatus(ProjectFileException.Operation operation,
TextGridProject project,
Throwable cause,
String message,
Object... arguments) |
ProjectFileException.Operation |
getOperation()
Returns the operation type on which this exception occurred.
|
TextGridProject |
getProject()
Returns the project on which this exception occurred.
|
getCause, getStatus, printStackTrace, printStackTrace, printStackTrace
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toString
public static String[] MESSAGES
public ProjectFileException(ProjectFileException.Operation operation, TextGridProject project, Throwable cause, String message, Object... arguments)
operation
- The kind of operation during that the problem occurred.project
- The TextGridProject
for which the project file operation occurred.cause
- The exception that caused the trouble (or null).message
- The first part of the message to display to the user (or null).arguments
- Arguments to format into the message, see NLS.bind(String, Object[])
.public ProjectFileException(ProjectFileException.Operation operation, TextGridProject project, Throwable cause)
operation
- The kind of operation during that the problem occurred.project
- The TextGridProject
for which the project file
operation occurred.cause
- The exception that caused the trouble (or null).public ProjectFileException.Operation getOperation()
public TextGridProject getProject()
protected static IStatus createStatus(ProjectFileException.Operation operation, TextGridProject project, Throwable cause, String message, Object... arguments)