Skip to main content
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link
URL Rewriter Bot
URL Rewriter Bot

Code throw Object1Exception(type); without the new; you are throwing a pointer to an exception, not an exception itself.

BTW, as commented by polkadotcadaverpolkadotcadaver, the error message was pretty clear, it told you about throwing an instance of some pointer type throwing an instance of 'tp::Object1Exception*'....

Code throw Object1Exception(type); without the new; you are throwing a pointer to an exception, not an exception itself.

BTW, as commented by polkadotcadaver, the error message was pretty clear, it told you about throwing an instance of some pointer type throwing an instance of 'tp::Object1Exception*'....

Code throw Object1Exception(type); without the new; you are throwing a pointer to an exception, not an exception itself.

BTW, as commented by polkadotcadaver, the error message was pretty clear, it told you about throwing an instance of some pointer type throwing an instance of 'tp::Object1Exception*'....

added 224 characters in body
Source Link
Basile Starynkevitch
  • 230.6k
  • 18
  • 323
  • 578

Code throw Object1Exception(type); without the new; you are throwing a pointer to an exception, not an exception itself.

BTW, as commented by polkadotcadaver, the error message was pretty clear, it told you about throwing an instance of some pointer type throwing an instance of 'tp::Object1Exception*'....

Code throw Object1Exception(type); without the new; you are throwing a pointer to an exception, not an exception itself.

Code throw Object1Exception(type); without the new; you are throwing a pointer to an exception, not an exception itself.

BTW, as commented by polkadotcadaver, the error message was pretty clear, it told you about throwing an instance of some pointer type throwing an instance of 'tp::Object1Exception*'....

Source Link
Basile Starynkevitch
  • 230.6k
  • 18
  • 323
  • 578

Code throw Object1Exception(type); without the new; you are throwing a pointer to an exception, not an exception itself.