File: exceptions.md

package info (click to toggle)
jeromq 0.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,604 kB
  • sloc: java: 51,171; xml: 851; sh: 149; makefile: 2
file content (29 lines) | stat: -rw-r--r-- 1,047 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# 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][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][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.


[zerror]: https://static.javadoc.io/org.zeromq/jeromq/0.6.0/zmq/ZError.html
[ioexception]: https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html