PageRenderTime 38ms CodeModel.GetById 12ms RepoModel.GetById 0ms app.codeStats 0ms

/runtimes/mindrt/error.d

http://github.com/wilkie/xomb
D | 27 lines | 12 code | 5 blank | 10 comment | 0 complexity | a8592aa89cfe13c64196aff39e4ba680 MD5 | raw file
Possible License(s): WTFPL
  1. /*
  2. * error.d
  3. *
  4. * This module implements the base class for a non recoverable failure.
  5. *
  6. * License: Public Domain
  7. *
  8. */
  9. module mindrt.error;
  10. import mindrt.exception;
  11. // Description: This is for a non irrecoverable failure.
  12. class Error : Exception {
  13. Error next;
  14. // Description: This will provide a descriptive message.
  15. this(char[] msg) {
  16. super(msg);
  17. }
  18. this(char[] msg, Error next) {
  19. super(msg);
  20. this.next = next;
  21. }
  22. }