Commit dcd2144 1 parent 90c814f commit dcd2144 Copy full SHA for dcd2144
File tree 6 files changed +26
-11
lines changed
src/compiler/Restler.Compiler
6 files changed +26
-11
lines changed Original file line number Diff line number Diff line change @@ -13,8 +13,10 @@ let TAB = @" "
13
13
let RETURN = @" \r\n"
14
14
let SPACE = @" "
15
15
16
+ type UnsupportedType ( msg : string ) =
17
+ inherit Exception( msg)
18
+
16
19
exception UnsupportedAccessPath
17
- exception UnsupportedType of string
18
20
19
21
module Types =
20
22
type RequestPrimitiveTypeData =
Original file line number Diff line number Diff line change @@ -22,7 +22,8 @@ open Restler.Utilities.Logging
22
22
open Restler.Utilities .Operators
23
23
open Restler.XMsPaths
24
24
25
- exception UnsupportedParameterSerialization of string
25
+ type UnsupportedParameterSerialization ( msg : string ) =
26
+ inherit Exception( msg)
26
27
27
28
module Types =
28
29
/// A configuration associated with a single Swagger document
Original file line number Diff line number Diff line change @@ -14,7 +14,9 @@ open Restler.ApiResourceTypes
14
14
open Restler.DependencyAnalysisTypes
15
15
open Restler.Annotations
16
16
17
- exception UnsupportedType of string
17
+ type UnsupportedType ( msg : string ) =
18
+ inherit Exception( msg)
19
+
18
20
exception InvalidSwaggerEndpoint
19
21
20
22
/// Determines whether a producer is valid for a given consumer.
Original file line number Diff line number Diff line change @@ -8,7 +8,8 @@ open Restler.ApiResourceTypes
8
8
open Restler.Utilities .Operators
9
9
open Restler.AccessPaths
10
10
11
- exception InvalidMutationsDictionaryFormat of string
11
+ type InvalidMutationsDictionaryFormat ( msg : string ) =
12
+ inherit System.Exception( msg)
12
13
13
14
type MutationsDictionary =
14
15
{
Original file line number Diff line number Diff line change @@ -6,9 +6,12 @@ module Restler.Swagger
6
6
open Microsoft.FSharpLu .File
7
7
open NSwag
8
8
9
- exception UnexpectedSwaggerParameter of string
10
- exception UnsupportedParameterSchema of string
11
- exception ParameterTypeNotFound of string
9
+ type UnexpectedSwaggerParameter ( msg : string ) =
10
+ inherit System.Exception( msg)
11
+ type UnsupportedParameterSchema ( msg : string ) =
12
+ inherit System.Exception( msg)
13
+ type ParameterTypeNotFound ( msg : string ) =
14
+ inherit System.Exception( msg)
12
15
13
16
let at x = Async.AwaitTask( x)
14
17
Original file line number Diff line number Diff line change @@ -10,11 +10,17 @@ open Restler.Utilities.Operators
10
10
open Newtonsoft.Json .Linq
11
11
open NJsonSchema
12
12
13
- exception UnsupportedType of string
14
- exception NullArraySchema of string
15
- exception UnsupportedArrayExample of string
16
- exception UnsupportedRecursiveExample of string
13
+ type UnsupportedType ( msg : string ) =
14
+ inherit Exception( msg)
17
15
16
+ type NullArraySchema ( msg : string ) =
17
+ inherit Exception( msg)
18
+
19
+ type UnsupportedArrayExample ( msg : string ) =
20
+ inherit Exception( msg)
21
+
22
+ type UnsupportedRecursiveExample ( msg : string ) =
23
+ inherit Exception( msg)
18
24
19
25
module SchemaUtilities =
20
26
You can’t perform that action at this time.
0 commit comments