public static class TarantoolErrors.TarantoolBoxErrorFactory extends Object implements TarantoolErrorFactory
TarantoolInternalException subclasses from the serialized representation
in the format of box.error:unpack,| Constructor and Description |
|---|
TarantoolBoxErrorFactory() |
| Modifier and Type | Method and Description |
|---|---|
TarantoolException |
create(TarantoolErrorResult error) |
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. |
public Optional<TarantoolException> create(org.msgpack.value.Value error)
TarantoolErrorFactoryOptional otherwise.create in interface TarantoolErrorFactoryerror - error received from TarantoolOptional, If the format is appropriate, then Optional will not be nullpublic TarantoolException create(TarantoolErrorResult error)
Copyright © 2025 Picodata. All rights reserved.