[racket] how do you raise a runtime error with source location information?

From: Robby Findler (robby at eecs.northwestern.edu)
Date: Mon Jun 20 23:00:56 EDT 2011

I don't know if there is one already that is a good match for what you
want, but you can always use prop:exn:srclocs to make a new one.


On Tue, Jun 21, 2011 at 10:40 AM, Danny Yoo <dyoo at cs.wpi.edu> wrote:
> In my personal brainf*ck compiler, I've been using the function
> "raise-syntax-error" to raise a runtime error, because I want to point
> at a given point in the text to blame.  For example, when an operation
> causes the tape head to fall off into negative territory, I can point
> at the offending line and column precisely with raise-syntax-error.
> However, it doesn't really feel like a syntax-error.
> raise-syntax-error doesn't sound right.  What should I really be
> using?
> Thanks!
> _________________________________________________
>  For list-related administrative tasks:
>  http://lists.racket-lang.org/listinfo/users

Posted on the users mailing list.