Class TarantoolErrors.TarantoolUnrecognizedErrorFactory
- java.lang.Object
-
- io.tarantool.driver.exceptions.errors.TarantoolErrors.TarantoolUnrecognizedErrorFactory
-
- All Implemented Interfaces:
TarantoolErrorFactory
- Enclosing class:
- TarantoolErrors
public static class TarantoolErrors.TarantoolUnrecognizedErrorFactory extends Object implements TarantoolErrorFactory
The factory is finalizing, i.e. errors passed into it will always be introverted as appropriate for the given factory The error is generated in a message that is passed toTarantoolInternalException
-
-
Constructor Summary
Constructors Constructor Description TarantoolUnrecognizedErrorFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<TarantoolException>
create(org.msgpack.value.Value error)
Parse the serialized error object and if it matches any of the familiar formats, produce and return a corresponding exception, or an emptyOptional
otherwise.
-
-
-
Method Detail
-
create
public Optional<TarantoolException> create(org.msgpack.value.Value error)
Description copied from interface:TarantoolErrorFactory
Parse the serialized error object and if it matches any of the familiar formats, produce and return a corresponding exception, or an emptyOptional
otherwise.- Specified by:
create
in interfaceTarantoolErrorFactory
- Parameters:
error
- error received from Tarantool- Returns:
- an
Optional
, If the format is appropriate, then Optional will not be null
-
-