Hi Meikel,
On Jun 11, 1:46 pm, Meikel Brandmeyer wrote:
> Hi,
>
> On Jun 11, 1:41 pm, Stefan Kamphausen wrote:
>
> > sorry, the comments at the end of my post were not supposed to show
> > up. The problem is, that the action is called with just one argument.
>
> I thought, that it is clear from
Hi,
On Jun 11, 1:41 pm, Stefan Kamphausen wrote:
> sorry, the comments at the end of my post were not supposed to show
> up. The problem is, that the action is called with just one argument.
I thought, that it is clear from the error: because you send no
additional argument. So the action gets
Hi,
On Jun 11, 1:38 pm, Meikel Brandmeyer wrote:
> > ;; Why is raise-except-action called?
>
> I don't understand what you mean. It is called because you send it as
> an action, no? Or did you mean: Why is the handler called, although
> the mode is :continue? (However, I'm not familiar with the n
Hi,
On Jun 11, 1:12 pm, Stefan Kamphausen wrote:
> error: # java.lang.IllegalArgumentException:
> Wrong number of args (1) passed to:
> agent-errors$raise-except-action>
> (defn raise-except-action [state new]
> (throw (Exception. "Action Exception")))
> (send ag r
Hi,
I am trying to understand the new 1.2 error handling of agents. For
this I created a minimal example which shows a strange behavior, at
least for my understanding
(def ag (agent 1))
(defn handler-fn [a e]
(println "state of agent:" @a)
(println "error:" e))
(defn raise-except-action [s