public class ExceptionUtils extends Object
Constructor and Description |
---|
ExceptionUtils() |
Modifier and Type | Method and Description |
---|---|
static ServiceFailure |
recastClientSideExceptionToServiceFailure(Exception e)
A helper function to preserve the stackTrace when catching one error and throwing a new one.
|
static ServiceFailure |
recastDataONEExceptionToServiceFailure(BaseException be)
A helper function for recasting DataONE exceptions to ServiceFailures while
preserving the detail code and TraceDetails.
|
public static ServiceFailure recastClientSideExceptionToServiceFailure(Exception e)
e
- public static ServiceFailure recastDataONEExceptionToServiceFailure(BaseException be)
be
- - BaseException subclass to be recastCopyright © 2020. All Rights Reserved.