forked from SharpMap/SharpMap
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOgcException.cs
More file actions
60 lines (56 loc) · 2.07 KB
/
OgcException.cs
File metadata and controls
60 lines (56 loc) · 2.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
using System;
using System.Collections.Generic;
namespace SharpMap.Web
{
/// <summary>
/// The ServiceExceptionReport element contains one
/// or more ServiceException elements that describe
/// a service exception.
/// </summary>
[Serializable]
public class ServiceExceptionReport
{
/// <summary>
/// Creates a new instance of this class
/// </summary>
public ServiceExceptionReport(string version)
{
ServiceException = new List<ServiceExceptionType>();
Version = version;
}
/// <summary>
/// The Service exception element is used to describe
/// a service exception.
/// </summary>
public List<ServiceExceptionType> ServiceException { get; private set; }
/// <summary>
/// Gets the version number
/// </summary>
public string Version { get ; private set; }
}
/// <summary>
/// The ServiceExceptionType type defines the ServiceException
/// element. The content of the element is an exception message
/// that the service wished to convey to the client application.
/// </summary>
[Serializable]
public struct ServiceExceptionType
{
/// <summary>
/// A service may associate a code with an exception
/// by using the code attribute.
/// </summary>
public string Code { get; set; }
/// <summary>
/// The locator attribute may be used by a service to
/// indicate to a client where in the client's request
/// an exception was encountered. If the request included
/// a 'handle' attribute, this may be used to identify the
/// offending component of the request. Otherwise the
/// service may try to use other means to locate the
/// exception such as line numbers or byte offset from the
/// begining of the request, etc ...
/// </summary>
public string Locator { get; set; }
}
}