Kross::ErrorInterface
Kross::ErrorInterface Class Reference
#include <errorinterface.h>
Inheritance diagram for Kross::ErrorInterface:

Public Member Functions | |
ErrorInterface () | |
void | clearError () |
long | errorLineNo () const |
const QString | errorMessage () const |
const QString | errorTrace () const |
bool | hadError () const |
void | setError (const QString &errormessage, const QString &tracemessage=QString(), long lineno=-1) |
void | setError (ErrorInterface *error) |
Detailed Description
Interface for error-handling.
Definition at line 50 of file errorinterface.h.
Constructor & Destructor Documentation
◆ ErrorInterface()
|
inline |
Constructor.
- Parameters
-
error The error message. lineno The liner number in the scripting code where this exception got thrown.
Definition at line 78 of file errorinterface.h.
Member Function Documentation
◆ clearError()
|
inline |
Clear the error.
Definition at line 137 of file errorinterface.h.
◆ errorLineNo()
|
inline |
- Returns
- the line number in the scripting code where the exception got thrown or -1 if there was no line number defined.
Definition at line 108 of file errorinterface.h.
◆ errorMessage()
|
inline |
- Returns
- the trace message.
Definition at line 91 of file errorinterface.h.
◆ errorTrace()
|
inline |
- Returns
- the error message.
Definition at line 99 of file errorinterface.h.
◆ hadError()
|
inline |
- Returns
- true if there was an error else false is returned.
Definition at line 83 of file errorinterface.h.
◆ setError() [1/2]
|
inline |
Set the error message.
Definition at line 116 of file errorinterface.h.
◆ setError() [2/2]
|
inline |
Set the error message.
Definition at line 127 of file errorinterface.h.
The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Sep 21 2023 04:02:21 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Sep 21 2023 04:02:21 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.