• Skip to content
  • Skip to link menu
KDE 4.3 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

Kross

Kross::ErrorInterface

Kross::ErrorInterface Class Reference

Interface for error-handling. More...

#include <errorinterface.h>

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

List of all members.

Public Member Functions

void clearError ()
 ErrorInterface ()
long errorLineNo () const
const QString errorMessage () const
const QString errorTrace () const
bool hadError () const
void setError (ErrorInterface *error)
void setError (const QString &errormessage, const QString &tracemessage=QString(), long lineno=-1)

Detailed Description

Interface for error-handling.

Definition at line 32 of file errorinterface.h.


Constructor & Destructor Documentation

Kross::ErrorInterface::ErrorInterface (  )  [inline]

Constructor.

Parameters:
error The error message.
lineno The liner number in the scripting code where this exception got thrown.

Definition at line 43 of file errorinterface.h.


Member Function Documentation

void Kross::ErrorInterface::clearError (  )  [inline]

Clear the error.

Definition at line 88 of file errorinterface.h.

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.

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

Definition at line 53 of file errorinterface.h.

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

Definition at line 58 of file errorinterface.h.

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.

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

Set the error message.

Definition at line 79 of file errorinterface.h.

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.


The documentation for this class was generated from the following file:
  • errorinterface.h

Kross

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal