PageRenderTime 53ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/runtime/error.d

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