Skip to content

Commit 1efb96a

Browse files
committed
add error msg
1 parent 3b357c8 commit 1efb96a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/src/model_creation/dsl_advanced.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,13 +277,14 @@ In some cases it may be desirable for Catalyst to not infer species and paramete
277277

278278
```julia
279279
using Catalyst
280-
# The following case will throw an UndeclaredSymbolicError.
281280
rn = @reaction_network begin
282281
@require_declaration
283282
(k1, k2), A <--> B
284283
end
285284
```
286-
In order to avoid an error in this case all the relevant species and parameters will have to be declared.
285+
Running the code above will yield the following error: `LoadError: UndeclaredSymbolicError: Unrecognized variables A detected in reaction expression: "((k1, k2), A <--> B)". Since the flag @require_declaration is declared, all species must be explicitly declared with the @species macro.`
286+
287+
In order to avoid the error in this case all the relevant species and parameters will have to be declared.
287288
```@example dsl_advanced_require_dec
288289
# The following case will not error.
289290
t = default_t()

0 commit comments

Comments
 (0)