Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 1.02 KB

exceptions.md

File metadata and controls

29 lines (19 loc) · 1.02 KB

Exceptions

JeroMQ defines a handful of custom exceptions, which are thrown as a means of signaling various exceptional internal states.

These exceptions are defined within the ZError class.

ZError.CtxTerminatedException

This exception is thrown when an action is attempted which requires an open context, but the context in question has been terminated.

ZError.InstantiationException

If you know what this exception is for, please update this document with an explanation!

Anecdotally, I can't find anywhere in the source code where this exception is ever thrown, so perhaps it should be removed?

ZError.IOException

This exception wraps java.io.IOException. When JeroMQ throws one of these, it is an acknowledgment that a java.io.IOException has occurred, but it is not JeroMQ's responsibility to resolve it; it is up to the caller.