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:
- THROWABLE, the throwable
- BUILD_INFO, string array of human-readable build information
- LOG_RECORDS, list of log records.
- USER_ID, user id.
- EMAIL, email.
- FOCUS_URI the current focus uri.
- PENDING_FOCUS_URI the pending focus uri
- APP_COUNT the number of instances running.
- INCLSCREEN Boolean.TRUE if the user should include a screen shot.
- APP_MODEL the application object.
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
handle( java.lang.Throwable t ) → void
Parameters
t - a Throwable
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]
handleUncaught
handleUncaught( java.lang.Throwable t ) → void
Parameters
t - a Throwable
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]
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( java.lang.Throwable t ) → int
main
main( java.lang.String[][] args ) → void
Parameters
args - a java.lang.String[]
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]
safe
safe( String s ) → String
Parameters
s - a String
Returns:
java.lang.String
[search for examples]
[view on GitHub]
[view on old javadoc]
setApplicationModel
setApplicationModel( org.autoplot.ApplicationModel appModel ) → void
Parameters
appModel - an ApplicationModel
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]
setFocusURI
setFocusURI( String uri ) → void
Parameters
uri - a String
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]
setLogConsole
setLogConsole( org.autoplot.scriptconsole.LogConsole lc ) → void
Parameters
lc - a LogConsole
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]
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
setUndoRedoSupport( org.autoplot.state.UndoRedoSupport undoRedoSupport ) → void
Parameters
undoRedoSupport - an UndoRedoSupport
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]
submitFeedback
submitFeedback( java.lang.Throwable t ) → void
Parameters
t - a Throwable
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]
submitRuntimeException
submitRuntimeException( java.lang.Throwable t, boolean uncaught ) → void
Parameters
t - a Throwable
uncaught - a boolean
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]