| #pragma once |
| |
| |
| |
| |
| |
| #if !defined(AFX_SERROR_H__25953AF0_0B0B_11D6_B96F_0040F674BE6A__INCLUDED_) |
| #define AFX_SERROR_H__25953AF0_0B0B_11D6_B96F_0040F674BE6A__INCLUDED_ |
| |
| #include <string> |
| #include <vector> |
| |
| #include "SDef.h" |
| |
| class SError { |
| protected: |
| std::string m_msg; |
| |
| public: |
| SError() : m_msg(""){}; |
| SError(const char *s) : m_msg(s){}; |
| virtual ~SError(){}; |
| virtual void debug_print() const { |
| |
| |
| |
| |
| } |
| }; |
| |
| class SMemAllocError final : public SError { |
| public: |
| SMemAllocError() : SError(""){}; |
| SMemAllocError(const char *s) : SError(s){}; |
| virtual ~SMemAllocError(){}; |
| void debug_print() const override { |
| |
| |
| |
| |
| } |
| }; |
| |
| class SWriteRasterError final : public SError { |
| public: |
| SWriteRasterError() : SError(""){}; |
| SWriteRasterError(const char *s) : SError(s){}; |
| virtual ~SWriteRasterError(){}; |
| void debug_print() const override { |
| |
| |
| |
| |
| } |
| }; |
| |
| class SBlurMatrixError final : public SError { |
| public: |
| SBlurMatrixError() : SError(""){}; |
| SBlurMatrixError(const char *s) : SError(s){}; |
| virtual ~SBlurMatrixError(){}; |
| void debug_print() const override { |
| |
| |
| |
| |
| } |
| }; |
| |
| class SFileReadError final : public SError { |
| public: |
| SFileReadError() : SError(""){}; |
| SFileReadError(const char *s) : SError(s){}; |
| virtual ~SFileReadError(){}; |
| void debug_print() const override { |
| |
| |
| |
| |
| } |
| }; |
| |
| #endif |