public class StorageException extends RuntimeException
| Modifier and Type | Field and Description |
|---|---|
String |
badValue
This is the string that will make it out to the client, explaining what went wrong.
|
NewGTFSErrorType |
errorType
For expected, recognized errors that have a defined enum value.
|
| Constructor and Description |
|---|
StorageException(Exception ex)
This is the constructor for wrapping unexpected and unhandled exceptions.
|
StorageException(NewGTFSErrorType errorType,
String badValue)
This is the constructor for expected errors that have a defined enum value.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic NewGTFSErrorType errorType
public String badValue
public StorageException(NewGTFSErrorType errorType, String badValue)
public StorageException(Exception ex)
Copyright © 2019. All rights reserved.