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 Error
from(Exception ex)
static Error
from(UnauthorisedException e)
Create anError
object from anUnauthorisedException
.static Error
from(GafferCheckedException gex)
Create anError
object from aGafferCheckedException
.static Error
from(GafferRuntimeException gex)
Create anError
object from aGafferRuntimeException
.static Error
from(GafferWrappedErrorRuntimeException gex)
Create anError
object from aGafferWrappedErrorRuntimeException
.
-
-
-
Method Detail
-
from
public static Error from(UnauthorisedException e)
Create anError
object from anUnauthorisedException
.- Parameters:
e
- the exception object- Returns:
- a newly constructed
Error
-
from
public static Error from(GafferCheckedException gex)
Create anError
object from aGafferCheckedException
.- Parameters:
gex
- the exception object- Returns:
- a newly constructed
Error
-
from
public static Error from(GafferRuntimeException gex)
Create anError
object from aGafferRuntimeException
.- Parameters:
gex
- the exception object- Returns:
- a newly constructed
Error
-
from
public static Error from(GafferWrappedErrorRuntimeException gex)
Create anError
object from aGafferWrappedErrorRuntimeException
.- Parameters:
gex
- the exception object- Returns:
- the error from within the exception
-
-