Skip to content

Commit f28876d

Browse files
committed
note string usage in report function
1 parent 37303ad commit f28876d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

helpers.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2693,6 +2693,10 @@ The `report` function will report an exception using your [exception handler](/d
26932693

26942694
report($e);
26952695

2696+
The `report` function also accepts a string as an argument. When a string is given to the function, the function will create an exception with the given string as its message:
2697+
2698+
report('Something went wrong.');
2699+
26962700
<a name="method-request"></a>
26972701
#### `request()` {#collection-method}
26982702

0 commit comments

Comments
 (0)