public interface TarantoolErrorFactory
TarantoolException
if this error matches the format of the factory.
This is essentially a factory and a chain of responsibility.Modifier and Type | Method and 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 empty
Optional otherwise. |
Optional<TarantoolException> create(org.msgpack.value.Value error)
Optional
otherwise.error
- error received from TarantoolOptional
, If the format is appropriate, then Optional will not be nullCopyright © 2025 Picodata. All rights reserved.