Skip to content

Improving documentation on exception handling #87

@jasalt

Description

@jasalt

I found a possibly broken example code control flow documentation with throwing exceptions, if I did not miss something while learning these parts.

Throwables don't seem to be available without use statement, leading to Can not resolve type Exception error when trying to instantiate them with (php/new Exception "ID is not integer") for throwing.

In REPL, (use \Exception) is required beforehand, or eg. with the cli-skeleton project main.phel the following addition:

(ns cli-skeleton\main
  (:require cli-skeleton\modules\adder-module :refer [adder])
  (:use \Exception))

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions