Module SpiderCaml.Error


module Error: sig .. end


Javascript errors.

type t = {
   message : string; (*The error message.*)
   filename : string option; (*(currently always None).*)
   line : string option; (*A copy of the line where the error occured.*)
   lineno : int; (*Line number.*)
   colno : int; (*Column number.*)
}
exception Message of t
exception RuntimeDestroyed
Raised after a call to destroy_runtime when a new closure is created (lambda method) or when a JS script call a closure.
exception InvalidRuntime
Raised when values from different runtimes are mixed together.
exception InvalidType
Raised when a value of some JS type is used as a value of another type.