Liking cljdoc? Tell your friends :D

javax.script.ScriptException

The generic Exception class for the Scripting APIs. Checked exception types thrown by underlying scripting implementations must be wrapped in instances of ScriptException. The class has members to store line and column numbers and filenames if this information is available.

The generic Exception class for the Scripting APIs.  Checked
exception types thrown by underlying scripting implementations must be wrapped in instances of
ScriptException.  The class has members to store line and column numbers and
filenames if this information is available.
raw docstring

->script-exceptionclj

(->script-exception s)
(->script-exception message file-name line-number)
(->script-exception message file-name line-number column-number)

Constructor.

ScriptException constructor specifying message, filename, line number and column number.

message - The message. - java.lang.String file-name - The filename - java.lang.String line-number - the line number. - int column-number - the column number. - int

Constructor.

ScriptException constructor specifying message, filename, line number
 and column number.

message - The message. - `java.lang.String`
file-name - The filename - `java.lang.String`
line-number - the line number. - `int`
column-number - the column number. - `int`
raw docstring

get-column-numberclj

(get-column-number this)

Get the column number on which an error occurred.

returns: The column number. Returns -1 if a column number is unavailable. - int

Get the column number on which an error occurred.

returns: The column number.  Returns -1 if a column number is unavailable. - `int`
raw docstring

get-file-nameclj

(get-file-name this)

Get the source of the script causing the error.

returns: The file name of the script or some other string describing the script source. May return some implementation-defined string such as <unknown> if a description of the source is unavailable. - java.lang.String

Get the source of the script causing the error.

returns: The file name of the script or some other string describing the script
 source.  May return some implementation-defined string such as <unknown>
 if a description of the source is unavailable. - `java.lang.String`
raw docstring

get-line-numberclj

(get-line-number this)

Get the line number on which an error occurred.

returns: The line number. Returns -1 if a line number is unavailable. - int

Get the line number on which an error occurred.

returns: The line number.  Returns -1 if a line number is unavailable. - `int`
raw docstring

get-messageclj

(get-message this)

Returns a message containing the String passed to a constructor as well as line and column numbers and filename if any of these are known.

returns: The error message. - java.lang.String

Returns a message containing the String passed to a constructor as well as
 line and column numbers and filename if any of these are known.

returns: The error message. - `java.lang.String`
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close