Seamly2D
Code documentation
VException Class Reference

The VException class parent for all exception. Could be use for abstract exception. More...

#include <vexception.h>

Inheritance diagram for VException:
Collaboration diagram for VException:

Public Member Functions

 VException (const QString &error)
 VException constructor exception. More...
 
 VException (const VException &e)
 VException copy constructor. More...
 
VExceptionoperator= (const VException &e)
 
virtual ~VException () Q_DECL_EQ_DEFAULT
 
virtual Q_NORETURN void raise () const Q_DECL_OVERRIDE
 raise method raise for exception More...
 
virtual Q_REQUIRED_RESULT VExceptionclone () const Q_DECL_OVERRIDE
 clone clone exception More...
 
virtual QString ErrorMessage () const
 ErrorMessage return main error message. More...
 
virtual QString DetailedInformation () const
 DetailedInformation return detailed information about error. More...
 
QString WhatUtf8 () const
 What return string with error. More...
 
void AddMoreInformation (const QString &info)
 AddMoreInformation add more information for error. More...
 
QString MoreInformation () const
 MoreInformation return more information for error. More...
 
virtual const char * what () const Q_DECL_OVERRIDE
 

Protected Member Functions

QString MoreInfo (const QString &detInfo) const
 

Protected Attributes

QString error
 error string with error More...
 
QString moreInfo
 moreInfo more information about error More...
 

Detailed Description

The VException class parent for all exception. Could be use for abstract exception.

Definition at line 65 of file vexception.h.

Constructor & Destructor Documentation

◆ VException() [1/2]

VException::VException ( const QString &  error)
explicit

VException constructor exception.

Parameters
errorstring with error

Definition at line 66 of file vexception.cpp.

References error.

Referenced by clone().

◆ VException() [2/2]

VException::VException ( const VException e)

VException copy constructor.

Parameters
eexception

Definition at line 77 of file vexception.cpp.

◆ ~VException()

virtual VException::~VException ( )
virtual

Member Function Documentation

◆ AddMoreInformation()

void VException::AddMoreInformation ( const QString &  info)

AddMoreInformation add more information for error.

Parameters
infoinformation

Definition at line 107 of file vexception.cpp.

References moreInfo.

Referenced by MainWindow::CheckRequiredMeasurements(), VPatternConverter::FixIncrementsToV0_2_0(), VDomDocument::getParameterBool(), VDomDocument::getParameterId(), VDomDocument::GetParametrDouble(), VDomDocument::GetParametrUInt(), VPatternConverter::MUnitV0_1_4(), VPattern::ParseAnchorPoint(), VPattern::parseIntersectXYTool(), VAbstractPattern::parseItemElement(), VPattern::ParseLineElement(), VPattern::ParseNodeArc(), VPattern::ParseNodeEllipticalArc(), VPattern::ParseNodePoint(), VPattern::ParseNodeSpline(), VPattern::ParseNodeSplinePath(), VPattern::ParseOldToolSpline(), VPattern::ParseOldToolSplinePath(), VPattern::ParsePathElement(), VPattern::parsePieceElement(), VPattern::ParseToolAlongLine(), VPattern::ParseToolArc(), VPattern::ParseToolArcWithLength(), VPattern::ParseToolBasePoint(), VPattern::ParseToolBisector(), VPattern::ParseToolCubicBezier(), VPattern::ParseToolCubicBezierPath(), VPattern::ParseToolCurveIntersectAxis(), VPattern::ParseToolCutArc(), VPattern::ParseToolCutSpline(), VPattern::ParseToolCutSplinePath(), VPattern::ParseToolEllipticalArc(), VPattern::ParseToolEndLine(), VPattern::ParseToolHeight(), VPattern::ParseToolLineIntersect(), VPattern::ParseToolLineIntersectAxis(), VPattern::ParseToolMirrorByAxis(), VPattern::ParseToolMirrorByLine(), VPattern::ParseToolMove(), VPattern::ParseToolNormal(), VPattern::ParseToolPointFromArcAndTangent(), VPattern::ParseToolPointFromCircleAndTangent(), VPattern::ParseToolPointOfContact(), VPattern::ParseToolPointOfIntersectionArcs(), VPattern::ParseToolPointOfIntersectionCircles(), VPattern::ParseToolPointOfIntersectionCurves(), VPattern::ParseToolRotation(), VPattern::ParseToolsElement(), VPattern::ParseToolShoulderPoint(), VPattern::ParseToolSpline(), VPattern::ParseToolSplinePath(), VPattern::ParseToolTriangle(), VPattern::ParseToolTrueDarts(), VDomDocument::setXMLContent(), and VDomDocument::ValidateXML().

◆ clone()

VException * VException::clone ( ) const
virtual

clone clone exception

Returns
new exception

Reimplemented in VExceptionToolWasDeleted.

Definition at line 145 of file vexception.cpp.

References VException().

◆ DetailedInformation()

◆ ErrorMessage()

◆ MoreInfo()

QString VException::MoreInfo ( const QString &  detInfo) const
protected

◆ MoreInformation()

QString VException::MoreInformation ( ) const
inline

MoreInformation return more information for error.

Returns
information

Definition at line 111 of file vexception.h.

References moreInfo.

Referenced by operator=().

◆ operator=()

◆ raise()

Q_NORETURN void VException::raise ( ) const
virtual

raise method raise for exception

Reimplemented in VExceptionToolWasDeleted.

Definition at line 155 of file vexception.cpp.

◆ what()

const char * VException::what ( ) const
virtual

Definition at line 161 of file vexception.cpp.

References error.

Referenced by VApplication::notify(), and MApplication::notify().

◆ WhatUtf8()

QString VException::WhatUtf8 ( ) const
inline

What return string with error.

Returns
string with error

Definition at line 101 of file vexception.h.

References error.

Referenced by operator=().

Member Data Documentation

◆ error

◆ moreInfo

QString VException::moreInfo
protected

moreInfo more information about error

Definition at line 91 of file vexception.h.

Referenced by AddMoreInformation(), DetailedInformation(), MoreInfo(), MoreInformation(), and operator=().


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