org.autoplot.scriptconsole.GuiExceptionHandler

This is the original das2 Exception handler dialog, but modified to support submitting an error report to a server. The server is hard-coded to be https://jfaden.net/RTEReceiver/LargeUpload.jsp, TODO: add runtime property to set this. This client will submit a file containing the report to the server. The filename is a client-side calculated hash of the stack trace and timestamp. The server is expecting a multi-part post, containing: "secret"="secret" "todo"="upload" "uploadfile"= the file to upload. TODO: refactor the error reporting stuff because it should be useful for headless applications as well.

GuiExceptionHandler( )


USER_ID


EMAIL


FOCUS_URI


PENDING_FOCUS_URI


APP_COUNT


INCLDOM


INCLSCREEN


APP_MODEL


UNDO_REDO_SUPPORT


THROWABLE


BUILD_INFO


LOG_RECORDS


AUTOPLOTRELEASETYPE


formatReport

formatReport( java.util.Map data, boolean uncaught, String userComments ) → String

data is a map containing the keys:

Parameters

data - map of data
uncaught - true if the exception was uncaught
userComments - additional comments from the user.

Returns:

the formatted report.

[search for examples] [view on GitHub] [view on old javadoc]

handle( java.lang.Throwable t ) → void [view source]
handleUncaught( java.lang.Throwable t ) → void [view source]

hashCode

hashCode( java.lang.StackTraceElement[] ee ) → int

create a hashCode identifying the stack trace location.

Parameters

ee - the stack trace.

Returns:

the hash

[search for examples] [view on GitHub] [view on old javadoc]


hashCode

hashCode( java.lang.Throwable t ) → int

create a hashCode identifying the stack trace location found within the throwable.

Parameters

t - the throwable

Returns:

the hash

[search for examples] [view on GitHub] [view on old javadoc]

main( String[] args ) → void [view source]
safe( String s ) → String [view source]
setApplicationModel( org.autoplot.ApplicationModel appModel ) → void [view source]
setFocusURI( String uri ) → void [view source]
setLogConsole( org.autoplot.scriptconsole.LogConsole lc ) → void [view source]

setScriptPanel

setScriptPanel( org.autoplot.scriptconsole.JythonScriptPanel scriptPanel ) → void

indicate the script panel where errors can be shown.

Parameters

scriptPanel - a JythonScriptPanel

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc]

setUndoRedoSupport( org.autoplot.state.UndoRedoSupport undoRedoSupport ) → void [view source]
submitFeedback( java.lang.Throwable t ) → void [view source]
submitRuntimeException( java.lang.Throwable t, boolean uncaught ) → void [view source]