ErrorTest¶
-
MLModule¶ genre Testauthor MeVis Medical Solutions AGpackage MeVisLab/Standarddll MLDiagnosisdefinition mlDiagnosis.def see also CoreControl,Console,MLLogFile,RuntimeViewkeywords testing,force,abort,assert,fatal,mlDebug,print,message,exit,debugging
Purpose¶
The module ErrorTest simulates many message and error types for testing purposes.
Parameter Fields¶
Field Index¶
Defines a function in which the event shall be triggered.: Enum |
Execute throw: Trigger |
Print Information: Trigger |
Error Message Code: Enum |
Execute throw(ErrCode): Trigger |
Print std::cerr: Trigger |
Error Message Text: String |
Execute throw(Msg): Trigger |
Print std::cout: Trigger |
Execute abort: Trigger |
fieldToTrigger: String |
Print Warning: Trigger |
Execute assert: Trigger |
otherPrint: Trigger |
|
Execute exit(0): Trigger |
Print Debug: Trigger |
|
Execute exit(1): Trigger |
Print Error: Trigger |
|
Execute exit(ErrCode): Trigger |
Print Fatal Error: Trigger |
Visible Fields¶
Print Information¶
-
name:informationPrint, type:Trigger¶ When pressed, an information message is printed.
Print Warning¶
-
name:warningPrint, type:Trigger¶ When pressed, an ML warning is printed or executed.
Print Fatal Error¶
-
name:fatalPrint, type:Trigger¶ When pressed, a fatal ML error is printed or executed.
Execute exit(0)¶
-
name:exit0, type:Trigger¶ When pressed, the application is terminated with
exit(0).
Execute exit(1)¶
-
name:exit1, type:Trigger¶ When pressed, the application is terminated with
exit(1).
Execute exit(ErrCode)¶
-
name:exitWithCode, type:Trigger¶ When pressed, the application is terminated with
exit(ErrCode).
Execute abort¶
-
name:abort, type:Trigger¶ When pressed, the application is terminated with
abort().
Execute assert¶
-
name:assert, type:Trigger¶ When pressed, the application is terminated with
assert(false).
Execute throw(ErrCode)¶
-
name:executeErrThrow, type:Trigger¶ When pressed, a
throw(ErrCode)is executed.
Execute throw(Msg)¶
-
name:executeMsgThrow, type:Trigger¶ When pressed, a
throwwith a message string is 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 |