PageRenderTime 185ms CodeModel.GetById 90ms app.highlight 3ms RepoModel.GetById 88ms app.codeStats 0ms

/src/fan/DraftErr.fan

https://bitbucket.org/afrankvt/draft/
Unknown | 25 lines | 22 code | 3 blank | 0 comment | 0 complexity | 042b65df26995bf4000217a0084fb9e7 MD5 | raw file
 1//
 2// Copyright (c) 2011, Andy Frank
 3// Licensed under the MIT License
 4//
 5// History:
 6//   14 May 2011  Andy Frank  Creation
 7//
 8
 9using web
10
11**
12** DraftErr is thrown while servicing a request from DraftMod.
13**
14const class DraftErr : Err
15{
16  ** Constructor.
17  new make(Int errCode, Err? cause := null)
18    : super("$errCode " + WebRes.statusMsg[errCode], cause)
19  {
20    this.errCode = errCode
21  }
22
23  ** HTTP error code for this error.
24  const Int errCode
25}