--- /dev/null
+/*
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the License);
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+using System;
+
+namespace Tizen.Multimedia
+{
+ /// <summary>
+ /// The exception that is thrown when an input file or a data stream that is supposed to conform
+ /// to a certain file format specification is malformed.
+ /// </summary>
+ public class FileFormatException : FormatException
+ {
+ /// <summary>
+ /// Initializes a new instance of the <see cref="FileFormatException"/> class.
+ /// </summary>
+ public FileFormatException()
+ {
+ }
+
+ /// <summary>
+ /// Initializes a new instance of the <see cref="FileFormatException"/> class with a specified error message.
+ /// </summary>
+ public FileFormatException(string message) : base(message)
+ {
+ }
+ }
+}
throw new UnauthorizedAccessException(msg);
case PlayerErrorCode.NotSupportedFile:
+ throw new FileFormatException(msg);
+
case PlayerErrorCode.FeatureNotSupported:
throw new NotSupportedException(msg);
}
}
- internal static class PlayerErrorConverter
- {
- internal static void ThrowIfError(int errorCode, string errorMessage)
- {
- }
- }
/// <summary>
/// The exception that is thrown when there is no available space in a buffer.
/// </summary>
<Compile Include="Camera\SinglePlane.cs" />
<Compile Include="Camera\TriplePlane.cs" />
<Compile Include="Common\Display.cs" />
+ <Compile Include="Common\FileFormatException.cs" />
<Compile Include="Common\IBufferOwner.cs" />
<Compile Include="Common\IMediaBuffer.cs" />
<Compile Include="Common\MultimediaDebug.cs" />