ErrorTest¶
-
MLModule
¶ genre Test
author MeVis Medical Solutions AG
package MeVisLab/Standard
dll MLDiagnosis
definition mlDiagnosis.def see also CoreControl
,Console
,MLLogFile
,ModuleView
,RuntimeView
keywords 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¶
Error Message Code : Enum |
Execute throw(ErrCode) : Trigger |
Print Information : Trigger |
Error Message Text : String |
Execute throw(Msg) : Trigger |
Print std::cerr : Trigger |
Execute abort : Trigger |
fieldToTrigger : String |
Print std::cout : Trigger |
Execute assert : Trigger |
Function in which the event shall be triggered. : Enum |
Print Warning : Trigger |
Execute exit(0) : Trigger |
otherPrint : Trigger |
|
Execute exit(1) : Trigger |
Print Debug : Trigger |
|
Execute exit(ErrCode) : Trigger |
Print Error : Trigger |
|
Execute throw : Trigger |
Print Fatal Error : Trigger |
Visible Fields¶
Print std::cout¶
-
name:
stdCoutPrint
, type:
Trigger
¶ If pressed, a
std::cout
message is being printed.
Print std::cerr¶
-
name:
stdCerrPrint
, type:
Trigger
¶ If pressed, a
std::cerr
message is being printed.
Print Information¶
-
name:
informationPrint
, type:
Trigger
¶ If pressed, an information message is being printed.
Print Warning¶
-
name:
warningPrint
, type:
Trigger
¶ If pressed, an ML warning is being printed or executed.
Print Fatal Error¶
-
name:
fatalPrint
, type:
Trigger
¶ If pressed, a fatal ML error is being printed or executed.
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(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 |