public class MantaJobException extends MantaException
Constructor and Description |
---|
MantaJobException(String message)
Creates an exception without an associated error list nor a job id.
|
MantaJobException(String message,
Throwable cause)
Creates an exception with the specified message and cause.
|
MantaJobException(UUID jobId,
List<MantaJobError> errors)
Creates an exception that bundles all of the errors associated with
all of the inputs for a job.
|
MantaJobException(UUID jobId,
String message)
Creates an exception without an associated error list.
|
MantaJobException(UUID jobId,
String message,
Throwable cause)
Creates an exception without an associated error list.
|
Modifier and Type | Method and Description |
---|---|
List<MantaJobError> |
getErrors() |
UUID |
getJobId() |
String |
getLocalizedMessage() |
String |
getMessage() |
addContextValue, getContextEntries, getContextLabels, getContextValues, getFirstContextValue, getFormattedExceptionMessage, getRawMessage, setContextValue
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public MantaJobException(String message)
message
- error messagepublic MantaJobException(UUID jobId, String message)
jobId
- job IDmessage
- error messagepublic MantaJobException(UUID jobId, String message, Throwable cause)
jobId
- job IDmessage
- error messagecause
- exception to wrappublic MantaJobException(String message, Throwable cause)
message
- The exception messagecause
- The exception causepublic MantaJobException(UUID jobId, List<MantaJobError> errors)
jobId
- job IDerrors
- list of errors for each failed inputpublic List<MantaJobError> getErrors()
public UUID getJobId()
public String getMessage()
getMessage
in class org.apache.commons.lang3.exception.ContextedRuntimeException
public String getLocalizedMessage()
getLocalizedMessage
in class Throwable
Copyright © 2012–2017 Joyent. All rights reserved.