Package eu.vstoyanov.natsy.exception
Class NatsyNotFoundException
-
- All Implemented Interfaces:
-
java.io.Serializable
public final class NatsyNotFoundException extends NatsyServerException
The stream, consumer, bucket, object or message named by the call does not exist.
Only thrown by operations that address something the caller already holds or names as a precondition. Lookups -
getStream,getConsumer,getKeyValue,getObjectStore,ObjectStore.info,KeyValueStore.get- returnnullfor an absent item instead, so "not there" is a value the compiler makes you handle rather than an exception to catch.
-
-
Field Summary
Fields Modifier and Type Field Description private final IntegererrorCodeprivate final IntegerapiErrorCodeprivate final Stringmessageprivate final Throwablecauseprivate final StringlocalizedMessageprivate final Array<Throwable>suppressedprivate Array<StackTraceElement>stackTrace
-
Constructor Summary
Constructors Constructor Description NatsyNotFoundException(String message, Integer errorCode, Integer apiErrorCode, Throwable cause)
-
Method Summary
Modifier and Type Method Description -
Methods inherited from class eu.vstoyanov.natsy.exception.NatsyServerException
getApiErrorCode, getErrorCode -
Methods inherited from class kotlin.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-