Class TarantoolErrors.TarantoolErrorsErrorFactory
- java.lang.Object
-
- io.tarantool.driver.exceptions.errors.TarantoolErrors.TarantoolErrorsErrorFactory
-
- All Implemented Interfaces:
TarantoolErrorFactory
- Enclosing class:
- TarantoolErrors
public static class TarantoolErrors.TarantoolErrorsErrorFactory extends Object implements TarantoolErrorFactory
ProducesTarantoolInternalExceptionsubclasses from the serialized representation in the format ofrequire('errors').new_class("NewError"),- See Also:
- tarantool/errors
-
-
Constructor Summary
Constructors Constructor Description TarantoolErrorsErrorFactory()
-
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 emptyOptionalotherwise.
-
-
-
Method Detail
-
create
public Optional<TarantoolException> create(org.msgpack.value.Value error)
Description copied from interface:TarantoolErrorFactoryParse the serialized error object and if it matches any of the familiar formats, produce and return a corresponding exception, or an emptyOptionalotherwise.- Specified by:
createin interfaceTarantoolErrorFactory- Parameters:
error- error received from Tarantool- Returns:
- an
Optional, If the format is appropriate, then Optional will not be null
-
-