-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
112 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
module Message = | ||
struct | ||
(** Type of error codes. See the asai documentation. *) | ||
type t = | ||
| SystemError (** Generic system errors. *) | ||
| MissingEnvironmentVariables (** Missing HOME or XDG_* environment variables. *) | ||
| FileError (** File paths are valid, but the files do not exist or file permissions are missing. *) | ||
| IllFormedFilePath (** File paths are ill-formed (independent of the file system state). *) | ||
| WebError (** All the network-related errors. *) | ||
|
||
| IllFormedJSON (** Low level JSON parsing errors. *) | ||
|
||
| AnchorNotFound (** Could not find the anchor at the expected library location. *) | ||
| HijackingAnchor (** Having an anchor on the path to the expected anchor. *) | ||
| IllFormedAnchor (** The anchor itself is ill-formed. *) | ||
|
||
| InvalidRouter (** The routing table itself is broken. *) | ||
| LibraryNotFound (** The routing table is okay, but the library cannot be found. *) | ||
| LibraryConflict (** Conflicting libraries are being loaded. *) | ||
| UnitNotFound (** Libraries are loaded, but the unit is not found. *) | ||
| IllFormedUnitPath (** The unit path is ill-formed. *) | ||
|
||
| InvalidOCamlPackage (** Invalid OCaml package. *) | ||
|
||
(** Default severity of error codes. See the asai documentation. *) | ||
let default_severity : t -> Asai.Diagnostic.severity = | ||
function | ||
| InvalidRouter -> Bug | ||
| _ -> Error | ||
|
||
(** String representation of error codes. See the asai documentation. *) | ||
let short_code : t -> string = | ||
function _ -> "E0001" (** XXX assign actual code *) | ||
end | ||
|
||
include Asai.Reporter.Make(Message) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.