AnnException.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include "systemMacro.h"
4 #include <sstream>
5 #include <exception>
6 #include <stdexcept>
7 #include <AnnGameObject.hpp>
8 #include <AnnErrorCode.hpp>
9 
10 namespace Annwvyn
11 {
14  {
15  public:
17 
19  const char* what() const throw() override;
20 
21  AnnGameObject* getObject() const;
22 
23  AnnGameObject* getParentWithBody() const;
24 
25  private:
26  static AnnGameObject* recurToBody(AnnGameObject* start);
29  };
30 
33  {
34  public:
36  const char* what() const throw() override;
37 
38  private:
40  };
41 
44  {
45  public:
47  const char* what() const throw() override;
48  };
49 
52  {
53  public:
55  const char* what() const throw() override;
56  };
57 
60  {
61  public:
62  AnnInitializationError(int errorCode, const std::string& message);
63  const char* what() const throw() override;
64  };
65 
68  {
69  public:
70  AnnInvalidPhysicalShapeError(const std::string& objectName);
71  const char* what() const throw() override;
72 
73  private:
75  };
76 
78  {
79  public:
80  AnnLevelLoadingError(const std::string& levelName, const std::string& objectName);
81  const char* what() const throw() override;
82 
83  private:
86  };
87 
88 }
file for defining macros used for symbol export regarding the way the OS does things.
const std::string objectName
static std::ostringstream outputFormater
Namespace containing the totality of Annwvyn components.
Definition: AnnGetter.cpp:8
Exception regarding engine utilisation. See message.
An object that exist in the game. Graphically and Potentially Physically.
Exception to throw when a physics enabled object will cause object coordinates reset.
Define a series of hex code as constant keywords to define error codes.
Exception regarding collision shape creation.
Exception relating physics setup and parent/child objects.
#define AnnDllExport
Definition: systemMacro.h:24
Game Object class.
Exception regarding an AnnGameObject that was null when it wasnt.
Exception in hand controller "side" detection.