OrmaosDocs

Reference

ormaos exceptions

Lists the exceptions of a recording or a call, swallowed first, or tells one exception, from where it was raised to where it was handled.

View as Markdown
ormaos exceptions [-h] [--json] [--limit N] [--offset N] [address]
ArgumentFrom the parserDefault
address`last` (the default), a recording such as r3, or an address inside one: r3:c42 (a call), r3:e5 (an exception), r3:i7 (an io event), r3:l2 (a logging record)last
--jsonprint JSON on stdout.
--limit Nshow at most N entries (default 20)20
--offset Nskip the first N entries.

For a recording or a call, a list, swallowed first:

order-sync
$ ormaos exceptions r1
r1: 7 exceptions (6 swallowed, 0 uncaught)
r1:e1 swallowed validate.SkuFormatError  raised at validate.py:24  handled at job.py:57 in sync_orders
r1:e2 swallowed validate.SkuFormatError  raised at validate.py:24  handled at job.py:57 in sync_orders
r1:e3 swallowed validate.SkuFormatError  raised at validate.py:24  handled at job.py:57 in sync_orders
r1:e4 swallowed validate.SkuFormatError  raised at validate.py:24  handled at job.py:57 in sync_orders
r1:e5 swallowed validate.SkuFormatError  raised at validate.py:24  handled at job.py:57 in sync_orders
r1:e6 swallowed validate.SkuFormatError  raised at validate.py:24  handled at job.py:57 in sync_orders
r1:e7 exit SystemExit  raised at job.py:86
next: ormaos exceptions r1:e1 | ormaos exceptions r1:e2 | ormaos tree r1:c130

For one exception:

order-sync
$ ormaos exceptions r1:e1
r1:e1 validate.SkuFormatError: swallowed
  raised at   validate.py:24 in check_sku  [r1:c168]
  left calls   check_sku [r1:c168], check_order [r1:c167]
  handled at  job.py:57 in sync_orders  [r1:c130]  and not raised again
  message     not recorded; args: tuple[1 str]
  logs        6 logging records in the call that handled it and below (6 dropped by the level)  [r1:l2]
  same type, same handler: 6 in all: r1:e1 r1:e2 r1:e3 r1:e4 r1:e5 ...
next: ormaos tree r1:c130 | ormaos logs r1:c130 | ormaos io r1:c130 | ormaos tree r1:c168 | ormaos exceptions r1:e2

The status of an exception is swallowed, uncaught, replaced, exit, ended at await or no handler seen. See Exceptions.

Arguments#

address#

A recording, a call (the exceptions that passed through it and the calls below it), or an exception (that one). Default last.

--limit N#

At most N exceptions in a list. Default 20.

--offset N#

Skips the first N exceptions of a list.

--json#

A document of kind exceptions for a list, exception for one. Schemas: /schemas/exceptions.json, /schemas/exception.json.