The VException class parent for all exception. Could be use for abstract exception. More...
#include <vexception.h>
Public Member Functions | |
VException (const QString &error) | |
VException constructor exception. More... | |
VException (const VException &e) | |
VException copy constructor. More... | |
VException & | operator= (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 VException * | clone () 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... | |
The VException class parent for all exception. Could be use for abstract exception.
Definition at line 65 of file vexception.h.
|
explicit |
VException constructor exception.
error | string with error |
Definition at line 66 of file vexception.cpp.
References error.
Referenced by clone().
VException::VException | ( | const VException & | e | ) |
|
virtual |
void VException::AddMoreInformation | ( | const QString & | info | ) |
AddMoreInformation add more information for error.
info | information |
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().
|
virtual |
clone clone exception
Reimplemented in VExceptionToolWasDeleted.
Definition at line 145 of file vexception.cpp.
References VException().
|
virtual |
DetailedInformation return detailed information about error.
Reimplemented in VExceptionWrongId, VExceptionObjectError, and VExceptionEmptyParameter.
Definition at line 134 of file vexception.cpp.
References moreInfo.
Referenced by MainWindow::exportLayoutAs(), MainWindow::exportPiecesAs(), MainWindow::FullParseFile(), TMainWindow::Fx(), GroupsWidget::getObjName(), MainWindow::GlobalchangeDraftBlock(), TMainWindow::ImportFromPattern(), EditLabelTemplateDialog::ImportTemplate(), VPattern::LiteParseIncrements(), VPattern::LiteParseTree(), TMainWindow::LoadFile(), TMainWindow::LoadFromExistingFile(), MainWindow::LoadPattern(), VDrawTool::ObjectName(), MainWindow::OpenMeasurementFile(), PatternPieceDialog::pathDialogClosed(), TMainWindow::SaveMFullName(), TMainWindow::SaveMName(), and TMainWindow::SaveMValue().
|
virtual |
ErrorMessage return main error message.
Reimplemented in VExceptionWrongId, VExceptionObjectError, VExceptionEmptyParameter, VExceptionConversionError, and VExceptionBadId.
Definition at line 97 of file vexception.cpp.
References error.
Referenced by MainWindow::DoExport(), MainWindow::exportLayoutAs(), MainWindow::exportPiecesAs(), MainWindow::FullParseFile(), TMainWindow::ImportFromPattern(), EditLabelTemplateDialog::ImportTemplate(), VPattern::LiteParseIncrements(), VPattern::LiteParseTree(), TMainWindow::LoadFile(), TMainWindow::LoadFromExistingFile(), MainWindow::LoadPattern(), MainWindow::OpenMeasurementFile(), and MainWindow::showLayoutMode().
|
protected |
Definition at line 117 of file vexception.cpp.
References moreInfo.
Referenced by VExceptionEmptyParameter::DetailedInformation(), VExceptionObjectError::DetailedInformation(), and VExceptionWrongId::DetailedInformation().
|
inline |
MoreInformation return more information for error.
Definition at line 111 of file vexception.h.
References moreInfo.
Referenced by operator=().
VException & VException::operator= | ( | const VException & | e | ) |
Definition at line 81 of file vexception.cpp.
References error, moreInfo, MoreInformation(), and WhatUtf8().
Referenced by VExceptionBadId::operator=(), VExceptionConversionError::operator=(), VExceptionEmptyParameter::operator=(), VExceptionObjectError::operator=(), VExceptionToolWasDeleted::operator=(), and VExceptionWrongId::operator=().
|
virtual |
raise method raise for exception
Reimplemented in VExceptionToolWasDeleted.
Definition at line 155 of file vexception.cpp.
|
virtual |
Definition at line 161 of file vexception.cpp.
References error.
Referenced by VApplication::notify(), and MApplication::notify().
|
inline |
What return string with error.
Definition at line 101 of file vexception.h.
References error.
Referenced by operator=().
|
protected |
error string with error
Definition at line 88 of file vexception.h.
Referenced by ErrorMessage(), VExceptionBadId::ErrorMessage(), VExceptionConversionError::ErrorMessage(), VExceptionEmptyParameter::ErrorMessage(), VExceptionObjectError::ErrorMessage(), VExceptionWrongId::ErrorMessage(), operator=(), VException(), what(), and WhatUtf8().
|
protected |
moreInfo more information about error
Definition at line 91 of file vexception.h.
Referenced by AddMoreInformation(), DetailedInformation(), MoreInfo(), MoreInformation(), and operator=().