MiniSEEDError

exception pymseed.MiniSEEDError(status_code, message=None)[source]

Bases: PymseedError

Exception for libmseed return values.

status_code is the raw libmseed return value. Negative values are error codes; the meaning of a positive value depends on the function that produced it, so callers passing one supply their own message.

Parameters:
  • status_code (int)

  • message (str | None)

Return type:

None

__reduce__()[source]

Support pickling without draining the unpickling thread’s registry.

The default reduction re-runs __init__(status_code, message), which would drain whatever happens to be in the registry on the thread that unpickles this exception. Restore the already-rendered state instead.

Return type:

tuple[Any, tuple[Any, …]]