Class ErrorFactory
- java.lang.Object
-
- uk.gov.gchq.gaffer.core.exception.ErrorFactory
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Errorfrom(Exception ex)static Errorfrom(UnauthorisedException e)Create anErrorobject from anUnauthorisedException.static Errorfrom(GafferCheckedException gex)Create anErrorobject from aGafferCheckedException.static Errorfrom(GafferRuntimeException gex)Create anErrorobject from aGafferRuntimeException.static Errorfrom(GafferWrappedErrorRuntimeException gex)Create anErrorobject from aGafferWrappedErrorRuntimeException.
-
-
-
Method Detail
-
from
public static Error from(UnauthorisedException e)
Create anErrorobject from anUnauthorisedException.- Parameters:
e- the exception object- Returns:
- a newly constructed
Error
-
from
public static Error from(GafferCheckedException gex)
Create anErrorobject from aGafferCheckedException.- Parameters:
gex- the exception object- Returns:
- a newly constructed
Error
-
from
public static Error from(GafferRuntimeException gex)
Create anErrorobject from aGafferRuntimeException.- Parameters:
gex- the exception object- Returns:
- a newly constructed
Error
-
from
public static Error from(GafferWrappedErrorRuntimeException gex)
Create anErrorobject from aGafferWrappedErrorRuntimeException.- Parameters:
gex- the exception object- Returns:
- the error from within the exception
-
-