-
Notifications
You must be signed in to change notification settings - Fork 10
Closed
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation
Description
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 documentationImprovements or additions to documentation