Purpose

The module ErrorTest simulates many message and error types for testing purposes.

Windows

Default Panel

../../../Modules/ML/MLDiagnosis/mhelp/Images/Screenshots/ErrorTest._default.png

Output Fields

output0

name: output0, type: Image

Parameter Fields

Visible Fields

Execute exit(0)

name: exit0, type: Trigger

If pressed, the application is being terminated with exit(0).

Execute exit(1)

name: exit1, type: Trigger

If pressed, the application is being terminated with exit(1).

Execute exit(ErrCode)

name: exitWithCode, type: Trigger

If pressed, the application is being terminated with exit(ErrCode).

Execute abort

name: abort, type: Trigger

If pressed, the application is being terminated with abort().

Execute assert

name: assert, type: Trigger

If pressed, the application is being terminated with assert(false).

Execute throw

name: executeThrow, type: Trigger

If pressed, a throw is being executed.

Execute throw(ErrCode)

name: executeErrThrow, type: Trigger

If pressed, a throw(ErrCode) is being executed.

Execute throw(Msg)

name: executeMsgThrow, type: Trigger

If pressed, a throw with a message string is being executed.

Error Message Code

name: errorMessageType, type: Enum, default: Ok

Defines the type of error message for generated errors.

Values:

Title Name
Ok Ok
Unknown Exception Occurred UnknownExceptionOccurred
Memory Allocation Failed MemoryAllocationFailed
Module Input Images Disconnected ModuleInputImagesDisconnected
Cyclic Image Connection CyclicImageConnection
Bad Module Pointer BadModulePointer
Bad Index Of Output Image BadIndexOfOutputImage
Bad Field Pointer Or Name BadFieldPointerOrName
Calculation Of Image Data Failed CalculationOfImageDataFailed
Calculation Of Required Image Input Extension Failed CalculationOfRequiredImageInputExtensionFailed
Calculation Of Image Properties Failed CalculationOfImagePropertiesFailed
Input Image Index Is Invalid InputImageIndexIsInvalid
Pointer To Input Image Is Invalid PointerToInputImageIsInvalid
Bad Data Type BadDataType
Programming Error ProgrammingError
No Error Message NoErrorMessage
Page Calculation Error In Module PageCalculationErrorInModule
Property Calculation Error In Module PropertyCalculationErrorInModule
Inbox Calculation Error In Module InboxCalculationErrorInModule
Bad Parameter BadParameter
Calculation Error CalculationError
Bad Image Dimension BadImageDimension
Invalid Recursion InvalidRecursion
Library Load/init Failed LibraryLoad/initFailed
File IOError FileIOError
Error Due To Previous Error ErrorDueToPreviousError
Bad Index BadIndex
Out Of Range OutOfRange
Missing Voxel Type Operations MissingVoxelTypeOperations
Bad Field Type BadFieldType
Bad Field Pointer Or Memory Allocation Failed BadFieldPointerOrMemoryAllocationFailed
Field Creation Error Or Memory Allocation Failed FieldCreationErrorOrMemoryAllocationFailed
Type Initialization Error TypeInitializationError
Exception In New ExceptionInNew
Exception In Delete ExceptionInDelete
Table Full TableFull
Error From External Library Or Application ErrorFromExternalLibraryOrApplication
Bad Base Field Type BadBaseFieldType
Bad Content In Base Field BadContentInBaseField
Required Type Not Registered RequiredTypeNotRegistered
Library Init Failed LibraryInitFailed
Bad Pointer Or NULL BadPointerOrNULL
Bad State BadState
Too Many Pushes Or Adds TooManyPushesOrAdds
Too Many Pops Or Removes TooManyPopsOrRemoves
Stack Table Or Buffer Empty StackTableOrBufferEmpty
Stack Table Or Buffer Not Empty StackTableOrBufferNotEmpty
Element Not Found ElementNotFound
Invalid File Name InvalidFileName
Invalid File Descriptor InvalidFileDescriptor
File Not Open FileNotOpen
No Or Invalid Permissions NoOrInvalidPermissions
Disk Or Resource Full DiskOrResourceFull
File Or Data Structure Corrupted FileOrDataStructureCorrupted
Invalid Version InvalidVersion
Unknown Or Invalid Compression Scheme UnknownOrInvalidCompressionScheme
Type Already Registered TypeAlreadyRegistered
Type Is Abstract TypeIsAbstract
Type Not Derived From Expected Parent Class TypeNotDerivedFromExpectedParentClass
Operation Interrupted OperationInterrupted
Bad Page Id BadPageId
Out Of Ressources OutOfRessources
Object Or File Exists ObjectOrFileExists
Object Or File Does Not Exist ObjectOrFileDoesNotExist
Deadlock Would Occur DeadlockWouldOccur
Could Not Create Open Or Modify File CouldNotCreateOpenOrModifyFile
Library Unload Error LibraryUnloadError
Library Unload Exception LibraryUnloadException
Not Supported On This System NotSupportedOnThisSystem
Object Still Referenced ObjectStillReferenced
Request Outside Of Image RequestOutsideOfImage

Function in which the event shall be triggered.

name: inFunctionToTrigger, type: Enum, default: handleNotification

Values:

Title Name
handle Notification handleNotification
calculate Output Sub Image calculateOutputSubImage

Error Message Text

name: errorMessageText, type: String, default: Default Message Text

Sets a message text for generated error messages.

Hidden Fields

otherPrint

name: otherPrint, type: Trigger

fieldToTrigger

name: fieldToTrigger, type: String, default: stdCoutPrint