Package jmri.jmrit.ctc
Class CTCExceptionBuffer
java.lang.Object
jmri.jmrit.ctc.CTCExceptionBuffer
- All Implemented Interfaces:
InstanceManagerAutoDefault
Most times the user does not have the System Console displayed when the CTC
system is being started up. As such, errors logged to the CTCException class
just "disappear" into the ether on that console, and the user has no
knowledge of any problems.
In this object, I will also gather up all of the errors, warnings and info
messages that my system generates in CTCException, and display them to the
user via a dialog box of some form, after the CTC system is fully started.
For safety, I implement InstanceManagerAutoDefault so that the objects
default constructor is called (for future safety). I'm not sure
if "class" variables below are initialized properly if this is not done.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription(package private) ArrayList<jmri.jmrit.ctc.CTCExceptionBuffer.ExceptionBufferRecord> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()You SHOULD call "isEmpty()" first, because this routine returns by default "INFO" IF there are NO entries in the list.booleanisEmpty()voidlogString(CTCExceptionBuffer.ExceptionBufferRecordSeverity exceptionBufferRecordSeverity, String string)
-
Field Details
-
_mArrayListOfExceptionBufferRecords
ArrayList<jmri.jmrit.ctc.CTCExceptionBuffer.ExceptionBufferRecord> _mArrayListOfExceptionBufferRecords
-
-
Constructor Details
-
CTCExceptionBuffer
public CTCExceptionBuffer()
-
-
Method Details
-
logString
public void logString(CTCExceptionBuffer.ExceptionBufferRecordSeverity exceptionBufferRecordSeverity, String string) -
isEmpty
-
clear
-
getHighestExceptionBufferRecordSeverity
You SHOULD call "isEmpty()" first, because this routine returns by default "INFO" IF there are NO entries in the list. It's purpose is to give the user an idea of the worst case scenario in the errors.- Returns:
- The highest level of severity in our list.
-
getAllMessages
-