CException¶
- class ikomia.utils.pyutils.CException¶
Base class for all Ikomia exceptions.
Import
from ikomia.utils import CException
Methods
Details
- __init__((object)arg1) None : ¶
Default constructor
- __init__( (object)arg1, (int)code, (str)error, (str)func, (str)file, (int)line) -> None :
Constructor with parameters
Args:
code (int): exception code
error (str): exception message
func (str): function from where exception is thrown
file (str): file from where exception is thrown
line (int): Line in source file from where exception is thrown
- message((CException)self) str : ¶
Get formatted exception message.
- Returns:
Exception message
- Return type:
str