APIError Class Reference

#include <apierror.h>

Inheritance diagram for APIError:
Collaboration diagram for APIError:

Public Member Functions

 APIError (APIErrorType type, const QString &message={})
APIErrorType type () const
- Public Member Functions inherited from RuntimeError
 Exception (const QString &message={}) noexcept
- Public Member Functions inherited from Exception
 Exception (const QString &message={}) noexcept
QString message () const noexcept

Private Attributes

APIErrorType m_type

Detailed Description

Definition at line 42 of file apierror.h.

Constructor & Destructor Documentation

◆ APIError()

APIError::APIError ( APIErrorType  type,
const QString &  message = {} 

Definition at line 31 of file apierror.cpp.

33  , m_type {type}
34 {
35 }
APIErrorType m_type
Definition: apierror.h:50
APIErrorType type() const
Definition: apierror.cpp:37
QString message() const noexcept
Definition: exceptions.cpp:36

Member Function Documentation

◆ type()

APIErrorType APIError::type ( ) const

Definition at line 37 of file apierror.cpp.

38 {
39  return m_type;
40 }

References m_type.

Referenced by WebApplication::doProcessRequest().

Here is the caller graph for this function:

Member Data Documentation

◆ m_type

APIErrorType APIError::m_type

Definition at line 50 of file apierror.h.

Referenced by type().

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