Release 4.0.0-preview1-00267
[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     public class CameraException : Exception
25     {
26         /// <summary>
27         /// Initializes a new instance of the <see cref="CameraException"/> class.
28         /// </summary>
29         public CameraException() : base()
30         {
31         }
32
33         /// <summary>
34         /// Initializes a new instance of the <see cref="CameraException"/> class with a specified error message.
35         /// </summary>
36         public CameraException(string message) : base(message)
37         {
38         }
39     }
40
41     /// <summary>
42     /// The exception that is thrown when a camera device-related error occurs.
43     /// </summary>
44     public class CameraDeviceException : CameraException
45     {
46         /// <summary>
47         /// Initializes a new instance of the <see cref="CameraDeviceException"/> class.
48         /// </summary>
49         public CameraDeviceException() : base()
50         {
51         }
52
53         /// <summary>
54         /// Initializes a new instance of the <see cref="CameraDeviceException"/> class with a specified error message.
55         /// </summary>
56         public CameraDeviceException(string message) : base(message)
57         {
58         }
59     }
60
61     /// <summary>
62     /// The exception that is thrown when a camera device is not available.
63     /// </summary>
64     public class CameraDeviceNotFoundException : CameraException
65     {
66         /// <summary>
67         /// Initializes a new instance of the <see cref="CameraDeviceNotFoundException"/> class.
68         /// </summary>
69         public CameraDeviceNotFoundException() : base()
70         {
71         }
72
73         /// <summary>
74         /// Initializes a new instance of the <see cref="CameraDeviceNotFoundException"/> class with a specified error message.
75         /// </summary>
76         public CameraDeviceNotFoundException(string message) : base(message)
77         {
78         }
79     }
80 }