public class LensException extends Exception implements Comparable<LensException>
Constructor and Description |
---|
LensException()
Constructs a new Lens Exception.
|
LensException(LensErrorInfo errorInfo)
Constructs a new Lens Exception with error info.
|
LensException(LensErrorInfo errorInfo,
Object... errorMsgFormattingArgs)
Constructs a new Lens Exception with error info and error msg formatting arguments.
|
LensException(LensErrorInfo errorInfo,
Throwable cause,
Object... errorMsgFormattingArgs)
Constructs a new Lens Exception with error info, cause and error msg formatting arguments.
|
LensException(LensException e)
Copy Constructor
|
LensException(String errorMsg)
Constructs a new Lens Exception.
|
LensException(String errorMsg,
LensErrorInfo errorInfo)
Constructs a new Lens Exception with error msg and error info.
|
LensException(String errorMsg,
LensErrorInfo errorInfo,
Throwable cause,
Object... errorMsgFormattingArgs)
Constructs a new Lens Exception with exception error message, error info, cause and error msg formatting arguments.
|
LensException(String errorMsg,
Throwable cause)
Constructs a new Lens Exception.
|
LensException(Throwable cause)
Constructs a new Lens Exception.
|
Modifier and Type | Method and Description |
---|---|
void |
buildLensErrorResponse(ErrorCollection errorCollection,
String apiVersion,
String id) |
LensErrorTO |
buildLensErrorTO(ErrorCollection errorCollection) |
int |
compareTo(LensException e) |
boolean |
equals(Object o) |
int |
getErrorCode() |
LensErrorInfo |
getErrorInfo() |
int |
getErrorWeight() |
String |
getFormattedErrorMsg(LensError lensError) |
LensAPIResult |
getLensAPIResult()
The lensResponse prepared by
buildLensErrorResponse(ErrorCollection, String, String) |
String |
getMessage() |
int |
hashCode() |
static LensException |
wrap(Exception e) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public LensException(String errorMsg)
Exception.Exception(String)
public LensException(String errorMsg, Throwable cause)
Exception.Exception(String, Throwable)
public LensException()
Exception.Exception()
public LensException(Throwable cause)
Exception.Exception(Throwable)
public LensException(LensErrorInfo errorInfo)
Exception.Exception()
public LensException(String errorMsg, LensErrorInfo errorInfo)
Exception.Exception()
public LensException(LensErrorInfo errorInfo, Throwable cause, @NonNull Object... errorMsgFormattingArgs)
Exception.Exception(Throwable)
public LensException(LensErrorInfo errorInfo, @NonNull Object... errorMsgFormattingArgs)
Exception.Exception(Throwable)
public LensException(String errorMsg, LensErrorInfo errorInfo, Throwable cause, @NonNull Object... errorMsgFormattingArgs)
Exception.Exception(Throwable)
public LensException(LensException e)
e
- public int getErrorCode()
public int getErrorWeight()
public final void buildLensErrorResponse(ErrorCollection errorCollection, String apiVersion, String id)
public final LensErrorTO buildLensErrorTO(ErrorCollection errorCollection)
public String getMessage()
getMessage
in class Throwable
public static LensException wrap(Exception e)
public int compareTo(LensException e)
compareTo
in interface Comparable<LensException>
@Generated(value="lombok") public LensErrorInfo getErrorInfo()
@Generated(value="lombok") public LensAPIResult getLensAPIResult()
buildLensErrorResponse(ErrorCollection, String, String)
Copyright © 2014–2018 Apache Software Foundation. All rights reserved.