package conformist

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Source file conformist.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
module String_error : Core.ERROR with type error = string = struct
  type error = string

  let invalid_bool = "Invalid value provided"
  let invalid_float = "Invalid number provided"
  let invalid_int = "Invalid number provided"
  let invalid_string = "Invalid value provided"
  let invalid_date = "Invalid date provided"
  let invalid_datetime = "Invalid datetime provided"
  let no_value = "No value provided"
  let of_string s = s
end

module Make = Core.Make
include Core.Make (String_error)

type error_msg = string
OCaml

Innovation. Community. Security.