1 #pragma once 2 3 #ifndef _PROVIDER_EXCEPT_H 4 #define _PROVIDER_EXCEPT_H 5 6 class CHeap_Exception 7 { 8 public: 9 enum HEAP_ERROR 10 { 11 E_ALLOCATION_ERROR = 0 , 12 E_FREE_ERROR 13 }; 14 15 CHeap_Exception(HEAP_ERROR e) : m_Error(e) {} 16 ~CHeap_Exception() {} 17 18 HEAP_ERROR GetError() { return m_Error ; } 19 private: 20 HEAP_ERROR m_Error; 21 }; 22 23 #endif 24