Skip to main content

Exceptions

9
  • Throwable->map

    Constructs a data representation for an Error with keys: :cause - root cause message :phase - error phase :via - caus...

  • catch

    catch-clause => (catch classname name expr*) finally-clause => (finally expr*) Catches and handles JavaScript exceptions...

  • ex-cause

    Returns exception cause (an Error / ExceptionInfo) if ex is an ExceptionInfo. Otherwise returns nil.

  • ex-data

    Returns exception data (a map) if ex is an ExceptionInfo. Otherwise returns nil.

  • ex-info

    Create an instance of ExceptionInfo, an Error type that carries a map of additional data.

  • ex-message

    Returns the message attached to the given Error / ExceptionInfo object. For non-Errors returns nil.

  • finally

    catch-clause => (catch classname name expr*) finally-clause => (finally expr*) Catches and handles JavaScript exceptions...

  • throw

    The expr is evaluated and thrown.

  • try

    catch-clause => (catch classname name expr*) finally-clause => (finally expr*) Catches and handles JavaScript exceptions...