theKernel 10.0
Loading...
Searching...
No Matches
jvmkkernel.MkErrorC Class Reference

MkErrorC - the class known as err or error is used to create and manage an error message … More...

+ Inheritance diagram for jvmkkernel.MkErrorC:
+ Collaboration diagram for jvmkkernel.MkErrorC:

Public Member Functions

native MkErrorC Next ()
  Java: MkErrorC err.Next() C-API
get next instance from linked-list of MkErrorS type
 
native MkErrorC Prev ()
  Java: MkErrorC err.Prev() C-API
get previous instance from linked-list of MkErrorS type
 
native MkErrorE GetCode ()
  Java: MkErrorE err.GetCode() C-API
get the value of MkErrorS::code
 
native int GetNum ()
  Java: int err.GetNum() C-API
get the MkErrorS::num. The number can be used as exit-code …
 
native long GetSize ()
  Java: long err.GetSize() C-API
get the error-message-size from the exception-object
 
native String GetText ()
  Java: String err.GetText() C-API
get the MkErrorS::text
 
native MkErrorC Catch (Throwable exception, String callfunc)
  Java: MkErrorC err.Catch(?Throwable exception = null?, ?String callfunc = null?) C-API
convert a programming-language-error into an jvmkkernel error …
 
MkErrorC Catch ()
  Java: MkErrorC err.Catch(?Throwable exception = null?, ?String callfunc = null?) C-API
convert a programming-language-error into an jvmkkernel error …
 
MkErrorC Catch (Throwable exception)
  Java: MkErrorC err.Catch(?Throwable exception = null?, ?String callfunc = null?) C-API
convert a programming-language-error into an jvmkkernel error …
 
native void Cleanup (String callfunc, int callline)
  Java: err.Cleanup(?String callfunc = null?, ?int callline = -1?) C-API
cleanup and print unwanted active error …
 
void Cleanup ()
  Java: err.Cleanup(?String callfunc = null?, ?int callline = -1?) C-API
cleanup and print unwanted active error …
 
void Cleanup (String callfunc)
  Java: err.Cleanup(?String callfunc = null?, ?int callline = -1?) C-API
cleanup and print unwanted active error …
 
void Log ()
  Java: err.Log(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
log the error to MkLogFileC (default: stderr) …
 
void Log (MkObjectC fmtobj)
  Java: err.Log(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
log the error to MkLogFileC (default: stderr) …
 
void Log (MkObjectC fmtobj, int debug)
  Java: err.Log(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
log the error to MkLogFileC (default: stderr) …
 
void Log (MkObjectC fmtobj, int debug, String callfunc)
  Java: err.Log(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
log the error to MkLogFileC (default: stderr) …
 
native void Println (String msg, String callfunc, int callline)
  Java: err.Println(?String msg = ""?, ?String callfunc = null?, ?int callline = -1?) C-API
print the default-error to the MkLogFileC (default: stderr) and clear the error afterwards …
 
void Println ()
  Java: err.Println(?String msg = ""?, ?String callfunc = null?, ?int callline = -1?) C-API
print the default-error to the MkLogFileC (default: stderr) and clear the error afterwards …
 
void Println (String msg)
  Java: err.Println(?String msg = ""?, ?String callfunc = null?, ?int callline = -1?) C-API
print the default-error to the MkLogFileC (default: stderr) and clear the error afterwards …
 
void Println (String msg, String callfunc)
  Java: err.Println(?String msg = ""?, ?String callfunc = null?, ?int callline = -1?) C-API
print the default-error to the MkLogFileC (default: stderr) and clear the error afterwards …
 
native void Reset (String callfunc, int callline, boolean force)
  Java: err.Reset(?String callfunc = null?, ?int callline = -1?, ?boolean force = false?) C-API
This function clears the err and resets to MK_OK
 
void Reset ()
  Java: err.Reset(?String callfunc = null?, ?int callline = -1?, ?boolean force = false?) C-API
This function clears the err and resets to MK_OK
 
void Reset (String callfunc)
  Java: err.Reset(?String callfunc = null?, ?int callline = -1?, ?boolean force = false?) C-API
This function clears the err and resets to MK_OK
 
void Reset (String callfunc, int callline)
  Java: err.Reset(?String callfunc = null?, ?int callline = -1?, ?boolean force = false?) C-API
This function clears the err and resets to MK_OK
 
native MkErrorE Stack (String callfunc, String callfile, int callline)
  Java: MkErrorE err.Stack(?String callfunc = null?, ?String callfile = null?, ?int callline = -1?) C-API
check on error and if yes append an ErrorStackFormat to the error-message
 
native void StackFormat (String callfunc, String callfile, int callline)
  Java: err.StackFormat(?String callfunc = null?, ?String callfile = null?, ?int callline = -1?) C-API
append an ensemble of func, file and line to the error-message
 
void StackFormat ()
  Java: err.StackFormat(?String callfunc = null?, ?String callfile = null?, ?int callline = -1?) C-API
append an ensemble of func, file and line to the error-message
 
void StackFormat (String callfunc)
  Java: err.StackFormat(?String callfunc = null?, ?String callfile = null?, ?int callline = -1?) C-API
append an ensemble of func, file and line to the error-message
 
void StackFormat (String callfunc, String callfile)
  Java: err.StackFormat(?String callfunc = null?, ?String callfile = null?, ?int callline = -1?) C-API
append an ensemble of func, file and line to the error-message
 
MkErrorE Stack ()
  Java: MkErrorE err.Stack(?String callfunc = null?, ?String callfile = null?, ?int callline = -1?) C-API
check on error and if yes append an ErrorStackFormat to the error-message
 
MkErrorE Stack (String callfunc)
  Java: MkErrorE err.Stack(?String callfunc = null?, ?String callfile = null?, ?int callline = -1?) C-API
check on error and if yes append an ErrorStackFormat to the error-message
 
MkErrorE Stack (String callfunc, String callfile)
  Java: MkErrorE err.Stack(?String callfunc = null?, ?String callfile = null?, ?int callline = -1?) C-API
check on error and if yes append an ErrorStackFormat to the error-message
 
native MkErrorC NoRaise ()
  Java: MkErrorC err.NoRaise() C-API
ignore the next return of MK_ERROR and do not raise an target-language-exception
 
native void AppendC (String message)
  Java: err.AppendC(String message) C-API
append the message to the MkErrorS::text
 
native void Raise ()
  Java: err.Raise() C-API
convert an jvmkkernel error into an programming-language-error and raise afterwards. …
 
native void SetC (String message, String callfunc, int errnum)
  Java: err.SetC(String message, ?String callfunc = null?, ?int errnum = -1?) C-API
'set' and 'raise' the MkErrorC using a string-message and a errnum-number
 
void SetC (String message)
  Java: err.SetC(String message, ?String callfunc = null?, ?int errnum = -1?) C-API
'set' and 'raise' the MkErrorC using a string-message and a errnum-number
 
void SetC (String message, String callfunc)
  Java: err.SetC(String message, ?String callfunc = null?, ?int errnum = -1?) C-API
'set' and 'raise' the MkErrorC using a string-message and a errnum-number
 
native boolean IsABORT ()
  Java: boolean err.IsABORT() C-API
check on ABORT signal …
 
native boolean IsEXIT ()
  Java: boolean err.IsEXIT() C-API
check on APPLICATION-EXIT error …
 
native boolean IsSOCKET ()
  Java: boolean err.IsSOCKET() C-API
check on SOCKET-DOWN error …
 
native boolean IsTIMEOUT ()
  Java: boolean err.IsTIMEOUT() C-API
check on TIMEOUT error …
 
native void SetABORT (String detail, String callfunc)
  Java: err.SetABORT(?String detail = "UNKNOWN"?, ?String callfunc = null?) C-API
send the ABORT signal to the calling stack…
 
void SetABORT ()
  Java: err.SetABORT(?String detail = "UNKNOWN"?, ?String callfunc = null?) C-API
send the ABORT signal to the calling stack…
 
void SetABORT (String detail)
  Java: err.SetABORT(?String detail = "UNKNOWN"?, ?String callfunc = null?) C-API
send the ABORT signal to the calling stack…
 
native void SetCONTINUE ()
  Java: err.SetCONTINUE() C-API
signal end of processing in an MqMqEventIF callback …
 
native void SetCode (MkErrorE code)
  Java: err.SetCode(MkErrorE code) C-API
set the MkErrorS::code value …
 
native void SetEXIT (String callfunc)
  Java: err.SetEXIT(?String callfunc = null?) C-API
finish the current callback, return to toplevel and MqExit the application …
 
void SetEXIT ()
  Java: err.SetEXIT(?String callfunc = null?) C-API
finish the current callback, return to toplevel and MqExit the application …
 
native void SetSOCKET (String detail, String callfunc)
  Java: err.SetSOCKET(?String detail = "UNKNOWN"?, ?String callfunc = null?) C-API
create SOCKET-DOWN error …
 
void SetSOCKET ()
  Java: err.SetSOCKET(?String detail = "UNKNOWN"?, ?String callfunc = null?) C-API
create SOCKET-DOWN error …
 
void SetSOCKET (String detail)
  Java: err.SetSOCKET(?String detail = "UNKNOWN"?, ?String callfunc = null?) C-API
create SOCKET-DOWN error …
 
native MkErrorC Dup ()
  Java: [constructor] MkErrorC srce.Dup() C-API
Dup-Constructor - create a new MkErrorC instance as copy from an existing MkErrorC instance …
 
native void Copy (MkErrorC srce)
  Java: dest.Copy(MkErrorC srce) C-API
Copy-Constructor - sync an existing MkErrorC instance with the values from an existing MkErrorC instance …
 
- Public Member Functions inherited from jvmkkernel.MkObjectC
void close ()
 
String toString ()
 
native void HandleDelete ()
  Java: netObj.HandleDelete() C-API
Handle-Delete-Slot - delete a netObj from handle-storage …
 
native boolean HandleExists ()
  Java: boolean obj.HandleExists() C-API
check if obj has already a handle defined…
 
native int HandleGet ()
  Java: int obj.HandleGet() C-API
Handle-Get-Slot - returns a export-hdl to the MkObjectC useable for external storage
 
native int HandleGetOfType ()
  Java: int obj.HandleGetOfType() C-API
Export-Slot - returns typeHdl of the obj .
 
native int HandleGetOr0 ()
  Java: int obj.HandleGetOr0() C-API
return export-hdl or 0 in not created…
 
native void DbgDump (String message, String callfunc)
  Java: obj.DbgDump(?String message = "var"?, ?String callfunc = null?) C-API
debug: Dump a instance to stderr with LNG and MQ internal data…
 
void DbgDump ()
  Java: obj.DbgDump(?String message = "var"?, ?String callfunc = null?) C-API
debug: Dump a instance to stderr with LNG and MQ internal data…
 
void DbgDump (String message)
  Java: obj.DbgDump(?String message = "var"?, ?String callfunc = null?) C-API
debug: Dump a instance to stderr with LNG and MQ internal data…
 
native void DbgL (String message, int debug, String callfunc, int lvl)
  Java: fmtobj.DbgL(String message, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
debug: write a instance-marker to the MkLogFileC (default: stderr) using the fmtobj as prefix …
 
void DbgL (String message)
  Java: fmtobj.DbgL(String message, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
debug: write a instance-marker to the MkLogFileC (default: stderr) using the fmtobj as prefix …
 
void DbgL (String message, int debug)
  Java: fmtobj.DbgL(String message, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
debug: write a instance-marker to the MkLogFileC (default: stderr) using the fmtobj as prefix …
 
void DbgL (String message, int debug, String callfunc)
  Java: fmtobj.DbgL(String message, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
debug: write a instance-marker to the MkLogFileC (default: stderr) using the fmtobj as prefix …
 
native void DbgLogC (String callfunc)
  Java: obj.DbgLogC(?String callfunc = null?) C-API
debug: write a short-obj-summary to MkLogFileC (default: stderr) …
 
void DbgLogC ()
  Java: obj.DbgLogC(?String callfunc = null?) C-API
debug: write a short-obj-summary to MkLogFileC (default: stderr) …
 
native void DbgO (String callfunc)
  Java: obj.DbgO(?String callfunc = null?) C-API
debug: write the object-details to MkLogFileC (default: stderr) …
 
void DbgO ()
  Java: obj.DbgO(?String callfunc = null?) C-API
debug: write the object-details to MkLogFileC (default: stderr) …
 
native void DbgSTACK (int skip, int num, String callfunc)
  Java: fmtobj.DbgSTACK(?int skip = 0?, ?int num = -1?, ?String callfunc = null?) C-API
debug: write the stack-trace to MkLogFileC (default: stderr) …
 
void DbgSTACK ()
  Java: fmtobj.DbgSTACK(?int skip = 0?, ?int num = -1?, ?String callfunc = null?) C-API
debug: write the stack-trace to MkLogFileC (default: stderr) …
 
void DbgSTACK (int skip)
  Java: fmtobj.DbgSTACK(?int skip = 0?, ?int num = -1?, ?String callfunc = null?) C-API
debug: write the stack-trace to MkLogFileC (default: stderr) …
 
void DbgSTACK (int skip, int num)
  Java: fmtobj.DbgSTACK(?int skip = 0?, ?int num = -1?, ?String callfunc = null?) C-API
debug: write the stack-trace to MkLogFileC (default: stderr) …
 
native void LogC (String message, int debug, String callfunc)
  Java: fmtobj.LogC(String message, ?int debug = 0?, ?String callfunc = null?) C-API
write a logging-message to MkLogFileC (default: stderr) using the internal format …
 
void LogC (String message)
  Java: fmtobj.LogC(String message, ?int debug = 0?, ?String callfunc = null?) C-API
write a logging-message to MkLogFileC (default: stderr) using the internal format …
 
void LogC (String message, int debug)
  Java: fmtobj.LogC(String message, ?int debug = 0?, ?String callfunc = null?) C-API
write a logging-message to MkLogFileC (default: stderr) using the internal format …
 
native void LogHEX (String callfunc, byte[] data)
  Java: fmtobj.LogHEX(?String callfunc = null?, byte[] data) C-API
log binaray data as HEX into the MkLogFileC (default: stderr) …
 
native void Log (MkObjectC fmtobj, int debug, String callfunc, int lvl)
  Java: obj.Log(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
Log-Slot - log a summary of an object to the MkLogFileC (default: stderr) target …
 
native void LogLong (MkObjectC fmtobj, int debug, String callfunc, int lvl)
  Java: obj.LogLong(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
log the MkObjectS verbose into the MkLogFileC (default: stderr) …
 
void LogLong ()
  Java: obj.LogLong(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
log the MkObjectS verbose into the MkLogFileC (default: stderr) …
 
void LogLong (MkObjectC fmtobj)
  Java: obj.LogLong(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
log the MkObjectS verbose into the MkLogFileC (default: stderr) …
 
void LogLong (MkObjectC fmtobj, int debug)
  Java: obj.LogLong(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
log the MkObjectS verbose into the MkLogFileC (default: stderr) …
 
void LogLong (MkObjectC fmtobj, int debug, String callfunc)
  Java: obj.LogLong(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
log the MkObjectS verbose into the MkLogFileC (default: stderr) …
 
native void LogShort (MkObjectC fmtobj, int debug, String callfunc, int lvl)
  Java: obj.LogShort(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
log the MkObjectS into the MkLogFileC (default: stderr) …
 
void LogShort ()
  Java: obj.LogShort(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
log the MkObjectS into the MkLogFileC (default: stderr) …
 
void LogShort (MkObjectC fmtobj)
  Java: obj.LogShort(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
log the MkObjectS into the MkLogFileC (default: stderr) …
 
void LogShort (MkObjectC fmtobj, int debug)
  Java: obj.LogShort(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
log the MkObjectS into the MkLogFileC (default: stderr) …
 
void LogShort (MkObjectC fmtobj, int debug, String callfunc)
  Java: obj.LogShort(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
log the MkObjectS into the MkLogFileC (default: stderr) …
 
native void LogType (MkObjectC fmtobj, int debug, String callfunc, int lvl)
  Java: obj.LogType(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
log the tyoe of the MkObjectS into the MkLogFileC (default: stderr) …
 
void LogType ()
  Java: obj.LogType(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
log the tyoe of the MkObjectS into the MkLogFileC (default: stderr) …
 
void LogType (MkObjectC fmtobj)
  Java: obj.LogType(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
log the tyoe of the MkObjectS into the MkLogFileC (default: stderr) …
 
void LogType (MkObjectC fmtobj, int debug)
  Java: obj.LogType(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
log the tyoe of the MkObjectS into the MkLogFileC (default: stderr) …
 
void LogType (MkObjectC fmtobj, int debug, String callfunc)
  Java: obj.LogType(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
log the tyoe of the MkObjectS into the MkLogFileC (default: stderr) …
 
native MkErrorC ErrorCatch (Throwable exception, String callfunc)
  Java: MkErrorC obj.ErrorCatch(?Throwable exception = null?, ?String callfunc = null?) C-API
convert a programming-language-error into an jvmkkernel error …
 
MkErrorC ErrorCatch ()
  Java: MkErrorC obj.ErrorCatch(?Throwable exception = null?, ?String callfunc = null?) C-API
convert a programming-language-error into an jvmkkernel error …
 
MkErrorC ErrorCatch (Throwable exception)
  Java: MkErrorC obj.ErrorCatch(?Throwable exception = null?, ?String callfunc = null?) C-API
convert a programming-language-error into an jvmkkernel error …
 
native MkErrorC ToError ()
  Java: MkErrorC obj.ToError() C-API
Error-Slot - return an error-object pre initialized with obj data.
 
native boolean IsNull ()
  Java: boolean obj.IsNull() C-API
ckeck if the object is null
 
native String ToName ()
  Java: String obj.ToName() C-API
Info-Slot - returns brief information about the obj as a string
 
native String ToNameOfClass ()
  Java: String obj.ToNameOfClass() C-API
Class-Slot - returns the Java-Class-Name of the obj as string
 
native String ToNameOfType ()
  Java: String obj.ToNameOfType() C-API
Type-Slot - returns the LibMkKernel-Type-Name of the obj as a string
 
native String ToString ()
  Java: String inst.ToString() C-API
String-Slot - returns the string representation of the inst
 
native int RefGet ()
 MkRefGet
 
native void SysKill (int pid, int signal)
 MkSysKill
 
native int SysGetPid ()
 MkSysGetPid
 
native void Dispose ()
  Java: [destructor] obj.Dispose() C-API
Dispose-Slot - untie the connection between the Native-Java-Instance and the jvmkkernel-Instance.
 
native void Delete ()
  Java: [destructor] obj.Delete() C-API
Delete-Slot - delete an instance.
 
void printP ()
 
void L0 ()
 
void L1 ()
 
void L2 ()
 
void L3 ()
 
void L4 ()
 
void L5 ()
 
void L6 ()
 
void L7 ()
 
void L8 ()
 
void L9 ()
 
void LA ()
 
void LB ()
 
void LE ()
 
void printL (String name, Object val)
 

Static Public Member Functions

static native MkErrorC HandleResolve (int netHdl)
  Java: [static] MkErrorC MkErrorC.HandleResolve(int netHdl) C-API
Handle-Resolve-Slot - return a MkErrorC from netHdl or null if invalid…
 
static native MkErrorC Instances ()
  Java: [static] MkErrorC MkErrorC.Instances() C-API
get head-instance from linked-list of MkErrorS type …
 
static native MkErrorC GetNull ()
  Java: [static] MkErrorC MkErrorC.GetNull() C-API
Null-Slot - return a MkErrorC typed NULL instance …
 
static native void PanicC (MkObjectC fmtobj, String callfunc, int errnum, String message)
  Java: [static] MkErrorC.PanicC(?MkObjectC fmtobj = null?, ?String callfunc = null?, ?int errnum = -1?, String message) C-API
do a panic with string as argument …
 
static native void PanicDEFAULT (MkObjectC fmtobj, String callfunc)
  Java: [static] MkErrorC.PanicDEFAULT(?MkObjectC fmtobj = null?, ?String callfunc = null?) C-API
make panic from MkErrorDEFAULT_RT …
 
static void PanicDEFAULT ()
  Java: [static] MkErrorC.PanicDEFAULT(?MkObjectC fmtobj = null?, ?String callfunc = null?) C-API
make panic from MkErrorDEFAULT_RT …
 
static void PanicDEFAULT (MkObjectC fmtobj)
  Java: [static] MkErrorC.PanicDEFAULT(?MkObjectC fmtobj = null?, ?String callfunc = null?) C-API
make panic from MkErrorDEFAULT_RT …
 
static native MkErrorC DEFAULT ()
  Java: [static] MkErrorC MkErrorC.DEFAULT() C-API
default-system-error - default-error
 
static native MkErrorC FORMAT (MkObjectC fmtobj)
  Java: [static] MkErrorC MkErrorC.FORMAT(?MkObjectC fmtobj = null?) C-API
system-error-format - format and return the default-error
 
static MkErrorC FORMAT ()
  Java: [static] MkErrorC MkErrorC.FORMAT(?MkObjectC fmtobj = null?) C-API
system-error-format - format and return the default-error
 
static native MkErrorC IGNORE ()
  Java: [static] MkErrorC MkErrorC.IGNORE() C-API
ignore-system-error - ignore the next error …
 
static native MkErrorC PRINT ()
  Java: [static] MkErrorC MkErrorC.PRINT() C-API
ignore-system-error - print the next error into MkLogFileC
 
- Static Public Member Functions inherited from jvmkkernel.MkObjectC
static native void HandleDeleteByNetHdl (int netHdl)
  Java: [static] MkObjectC.HandleDeleteByNetHdl(int netHdl) C-API
Handle-Delete-Slot - delete a netHdl from handle-storage …
 
static native void DbgM (String message, int debug, String callfunc, int lvl)
  Java: [static] MkObjectC.DbgM(String message, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
debug: write a static-marker to the MkLogFileC (default: stderr) …
 
static void DbgM (String message)
  Java: [static] MkObjectC.DbgM(String message, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
debug: write a static-marker to the MkLogFileC (default: stderr) …
 
static void DbgM (String message, int debug)
  Java: [static] MkObjectC.DbgM(String message, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
debug: write a static-marker to the MkLogFileC (default: stderr) …
 
static void DbgM (String message, int debug, String callfunc)
  Java: [static] MkObjectC.DbgM(String message, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
debug: write a static-marker to the MkLogFileC (default: stderr) …
 
static native int SysHashI32 (String key, int length)
 MkSysHashI32
 
static int SysHashI32 (String key)
 MkSysHashI32
 
static native String SysHashSTR (String key, int length)
 MkSysHashSTR
 
static String SysHashSTR (String key)
 MkSysHashSTR
 
static native void DeleteCallbackCleanup (String ident)
  Java: [static] MkObjectC.DeleteCallbackCleanup(String ident) C-API
cleanup the DeleteCallback installed with MkObjectDeleteCallbackSetup
 
static native void DeleteCallbackSetup (String ident, MkObjectDeleteIF callback, String filter)
  Java: [static] MkObjectC.DeleteCallbackSetup(String ident, ?MkObjectDeleteIF callback = null?, ?String filter = null?) C-API
Create/Delete the instance-delete-callback
 
static void DeleteCallbackSetup (String ident)
  Java: [static] MkObjectC.DeleteCallbackSetup(String ident, ?MkObjectDeleteIF callback = null?, ?String filter = null?) C-API
Create/Delete the instance-delete-callback
 
static void DeleteCallbackSetup (String ident, MkObjectDeleteIF callback)
  Java: [static] MkObjectC.DeleteCallbackSetup(String ident, ?MkObjectDeleteIF callback = null?, ?String filter = null?) C-API
Create/Delete the instance-delete-callback
 
static int getPId ()
 
static long getTId ()
 
static String getCallerProc (int level)
 
static String getCallerProc ()
 
static String getStackTrace (int level)
 
static String getStackTrace ()
 
static int getCallerLine (int level)
 
static int getCallerLine ()
 
static String getCallerFile (int level)
 
static String getCallerFile ()
 
static void SF (String msg, String name, int framelvl)
 
static void SF (String msg)
 
static void SF (String msg, String name)
 
static void printP (long ptr, String name, int framelvl)
 
static void printO (byte byt, String name, int framelvl)
 
static void printBool (boolean bol, String name, int framelvl)
 
static void printObj (Object id, String caller, int framelvl)
 
static void printObj (Object id, String caller)
 
static void printObj (Object id)
 
static void printC (String id, String name, int framelvl)
 
static void printC (String id)
 
static void printTyp (MkObjectC id, String name, int framelvl)
 
static void printStack (String name, int framelvl)
 
static void M0 ()
 
static void M1 ()
 
static void M2 ()
 
static void M3 ()
 
static void M4 ()
 
static void M5 ()
 
static void M6 ()
 
static void M7 ()
 
static void M8 ()
 
static void M9 ()
 
static void MA ()
 
static void MB ()
 
static void MC ()
 
static void MD ()
 
static void ME ()
 

Additional Inherited Members

- Protected Member Functions inherited from jvmkkernel.MkObjectC
 MkObjectC (long mng, boolean dummy)
 This contructor is used internal to create an java-object for an already existing libmqmsgque-object.
 
void Dispose (boolean disposing)
 
- Static Package Functions inherited from jvmkkernel.MkObjectC

Detailed Description

MkErrorC - the class known as err or error is used to create and manage an error message …

An error is a singleton object per thread created at startup and is located at MkRuntimeRLS using the datatype MkErrorC.

‍As error-indicator the enum MkErrorE is used.

The MkErrorC is used to collect all data needed to handle an error and provide global ressources required to process and report the error.

The MkErrorC is also used to integrate the error-handling from jvmkkernel into the error-handling-code of the target Java.

Example from Filter6.java use MqContextErrorCatch to convert a Java error into a jvmkkernel error

  public static void main(String[] argv) {
    MqContextC srv = MqFactoryC.Add(Filter6.class).New();
    try {
      srv.LinkCreate(argv);
      srv.ProcessEvent(MqWaitOnEventE.FOREVER);
    } catch (Throwable e) {
      srv.ErrorCatch(e);
    } finally {
      srv.Exit();
    }
  }

MkExceptionC

MkExceptionC - The default-exception of the Programming-Language-Micro-Kernel (PLMK)

The Programming-Language-Micro-Kernel (PLMK) provide with MkErrorC a complete error-handling with focus to support the "C" Programming-Language. The support include catch, raise, signal and attributes. In addition every Target-Programming-Language (TPL) add their own error-handling and the purpose of MkExceptionC is to integrate the MkErrorC into the Target-Programming-Language (TPL).

The default-exception MkExceptionC is used to connect the MkErrorC with the Target-Programming-Language (TPL) error-object.

  • The default-error is defined in MkRuntimeS::error_mk.
  • On error the default-error is set to the error-data, the MkErrorE status change to MK_ERROR.
  • The non-C language create a copy from the default-error and throw the copy as MkExceptionC exception.
  • The C language just return the MkErrorE status of the default-error.

The implementation of an exception depends heavily on the Target-Programming-Language (TPL), starting with no exception at all, for example. C, an exception as a class object, or as an exception as a global attribute.

Attention

ExceptionCheck

Checks if Exception is of type MkExceptionC and returns true or false

Example: test case to check KILL and RECOVER feature, check on MkExceptionC

          var VAL = ReadBUF();
          mycl = new Client();
          mycl.LinkCreate(ConfigGetStartAs());
          int PID = (int) mycl.Send("W", "GPID@I");
          int RET=0;
          SysKill(PID,9);
          for (int i = 0; i < 3; i++) {
            try {
              RET = (int) mycl.Send("W", "ECOI:U@I", VAL);
            } catch (MkExceptionC ex) {
              var err = mycl.ErrorCatch(ex);
              if (err.IsSOCKET()) {
                err.Reset();
                mycl.LinkConnect();
                continue;
              } else {
                err.Raise();
              }
            }
            break;
          }
          SendSTART();
          SendI32(RET);
Returns
the result of the check, true or false
Parameters
[in]exceptionthe exception object from Java, if null the global exception object is used

Definition at line 18 of file MkErrorC.java.


The documentation for this class was generated from the following file: