[NUI] TCSACR-226 code change (#1032)
[platform/core/csapi/tizenfx.git] / src / Tizen.Multimedia.Camera / Camera / CameraException.cs
1 /*
2  * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * Licensed under the Apache License, Version 2.0 (the License);
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an AS IS BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 using System;
18
19 namespace Tizen.Multimedia
20 {
21     /// <summary>
22     /// The base exception class that is thrown when specific camera related error occurs.
23     /// </summary>
24     /// <since_tizen> 3 </since_tizen>
25     public class CameraException : Exception
26     {
27         /// <summary>
28         /// Initializes a new instance of the <see cref="CameraException"/> class.
29         /// </summary>
30         /// <since_tizen> 3 </since_tizen>
31         public CameraException() : base()
32         {
33         }
34
35         /// <summary>
36         /// Initializes a new instance of the <see cref="CameraException"/> class with a specified error message.
37         /// </summary>
38         /// <param name="message">A specified error message.</param>
39         /// <since_tizen> 3 </since_tizen>
40         public CameraException(string message) : base(message)
41         {
42         }
43     }
44
45     /// <summary>
46     /// The exception that is thrown when a camera device-related error occurs.
47     /// </summary>
48     /// <since_tizen> 3 </since_tizen>
49     public class CameraDeviceException : CameraException
50     {
51         /// <summary>
52         /// Initializes a new instance of the <see cref="CameraDeviceException"/> class.
53         /// </summary>
54         /// <since_tizen> 3 </since_tizen>
55         public CameraDeviceException() : base()
56         {
57         }
58
59         /// <summary>
60         /// Initializes a new instance of the <see cref="CameraDeviceException"/> class with a specified error message.
61         /// </summary>
62         /// <param name="message">A specified error message.</param>
63         /// <since_tizen> 3 </since_tizen>
64         public CameraDeviceException(string message) : base(message)
65         {
66         }
67     }
68
69     /// <summary>
70     /// The exception that is thrown when a camera device is not available.
71     /// </summary>
72     /// <since_tizen> 3 </since_tizen>
73     public class CameraDeviceNotFoundException : CameraException
74     {
75         /// <summary>
76         /// Initializes a new instance of the <see cref="CameraDeviceNotFoundException"/> class.
77         /// </summary>
78         /// <since_tizen> 3 </since_tizen>
79         public CameraDeviceNotFoundException() : base()
80         {
81         }
82
83         /// <summary>
84         /// Initializes a new instance of the <see cref="CameraDeviceNotFoundException"/> class with a specified error message.
85         /// </summary>
86         /// <param name="message">A specified error message.</param>
87         /// <since_tizen> 3 </since_tizen>
88         public CameraDeviceNotFoundException(string message) : base(message)
89         {
90         }
91     }
92 }