• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 API Reference
  • KDE Home
  • Contact Us
 

Kross

  • Kross
  • ErrorInterface
Public Member Functions | List of all members
Kross::ErrorInterface Class Reference

#include <errorinterface.h>

Inheritance diagram for Kross::ErrorInterface:
Kross::Action Kross::Interpreter Kross::Object Kross::Script Kross::EcmaInterpreter Kross::KjsInterpreter Kross::EcmaObject Kross::EcmaScript Kross::KjsScript

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 32 of file errorinterface.h.

Constructor & Destructor Documentation

◆ ErrorInterface()

Kross::ErrorInterface::ErrorInterface ( )
inline

Constructor.

Parameters
errorThe error message.
linenoThe liner number in the scripting code where this exception got thrown.

Definition at line 43 of file errorinterface.h.

Member Function Documentation

◆ clearError()

void Kross::ErrorInterface::clearError ( )
inline

Clear the error.

Definition at line 88 of file errorinterface.h.

◆ errorLineNo()

long Kross::ErrorInterface::errorLineNo ( ) const
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 64 of file errorinterface.h.

◆ errorMessage()

const QString Kross::ErrorInterface::errorMessage ( ) const
inline
Returns
the trace message.

Definition at line 53 of file errorinterface.h.

◆ errorTrace()

const QString Kross::ErrorInterface::errorTrace ( ) const
inline
Returns
the error message.

Definition at line 58 of file errorinterface.h.

◆ hadError()

bool Kross::ErrorInterface::hadError ( ) const
inline
Returns
true if there was an error else false is returned.

Definition at line 48 of file errorinterface.h.

◆ setError() [1/2]

void Kross::ErrorInterface::setError ( const QString &  errormessage,
const QString &  tracemessage = QString(),
long  lineno = -1 
)
inline

Set the error message.

Definition at line 69 of file errorinterface.h.

◆ setError() [2/2]

void Kross::ErrorInterface::setError ( ErrorInterface *  error)
inline

Set the error message.

Definition at line 79 of file errorinterface.h.


The documentation for this class was generated from the following file:
  • errorinterface.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Kross

Skip menu "Kross"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal