Paul:

  class MyError : Exception {
    this(string msg) { super(msg); }
  }

Don't call exceptions errors, because in D there are also errors, so they should have distinct names.


Is any shorter D way?

Perhaps not.

Bye,
bearophile

Reply via email to