Open
Graph Drawing
Framework

 v. snapshot-2017-02-16
 

ogdf::PreconditionViolatedException Class Reference

Exception thrown when preconditions are violated. More...

#include <ogdf/basic/exceptions.h>

+ Inheritance diagram for ogdf::PreconditionViolatedException:

Public Member Functions

 PreconditionViolatedException (PreconditionViolatedCode code, const char *file=nullptr, int line=-1)
 Constructs a precondition violated exception. More...
 
 PreconditionViolatedException (const char *file=nullptr, int line=-1)
 Constructs a precondition violated exception. More...
 
PreconditionViolatedCode exceptionCode () const
 Returns the error code of the exception. More...
 
- Public Member Functions inherited from ogdf::Exception
 Exception (const char *file=nullptr, int line=-1)
 Constructs an exception. More...
 
const char * file () const
 Returns the name of the source file where exception was thrown. More...
 
int line () const
 Returns the line number where the exception was thrown. More...
 

Private Attributes

PreconditionViolatedCode m_exceptionCode
 The error code specifying the exception. More...
 

Detailed Description

Exception thrown when preconditions are violated.

Definition at line 276 of file exceptions.h.

Constructor & Destructor Documentation

◆ PreconditionViolatedException() [1/2]

ogdf::PreconditionViolatedException::PreconditionViolatedException ( PreconditionViolatedCode  code,
const char *  file = nullptr,
int  line = -1 
)
inlineexplicit

Constructs a precondition violated exception.

Definition at line 280 of file exceptions.h.

◆ PreconditionViolatedException() [2/2]

ogdf::PreconditionViolatedException::PreconditionViolatedException ( const char *  file = nullptr,
int  line = -1 
)
inlineexplicit

Constructs a precondition violated exception.

Definition at line 288 of file exceptions.h.

Member Function Documentation

◆ exceptionCode()

PreconditionViolatedCode ogdf::PreconditionViolatedException::exceptionCode ( ) const
inline

Returns the error code of the exception.

Definition at line 296 of file exceptions.h.

Member Data Documentation

◆ m_exceptionCode

PreconditionViolatedCode ogdf::PreconditionViolatedException::m_exceptionCode
private

The error code specifying the exception.

Definition at line 299 of file exceptions.h.


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