Questions tagged [constructor-exception]

4 questions
36
votes
1 answer

Constructor on type not found

Exception Message: Constructor on type StateLog not found. I have the following code that does not work for only one class: List list = new List(); string line; string[] lines; HttpWebResponse resp =…
Jacob Lambert
  • 7,449
  • 8
  • 27
  • 47
3
votes
2 answers

C++ - catching a double exception

I have the following code: #include using namespace std; class A { public: A() { cout << "A::A()" << endl;} ~A() { cout << "A::~A()" << endl; throw "A::exception";} }; class B { public: B() { cout << "B::B()" << endl;…
Mickey
  • 1,405
  • 2
  • 13
  • 33
0
votes
1 answer

RushORM database throwing Excretion while getting data

I am using RushORM database in my Android App. I can save data but when I try to get the stored data it is throwing an exception: Method threw RushTableMissingEmptyConstructorException. Here is the model class that is table RushORM…
asadullah
  • 121
  • 1
  • 8
0
votes
1 answer

Cleaning data after exception on class constructor

Why this code not call CloseHandles in class destructor? In my code test I call '((MyClass*)pThis)->CloseHandles();' explicitly, but variable m_bFinished have wrong value. Why ? #include #include class MyClass { public: …
lsalamon
  • 7,998
  • 6
  • 50
  • 63