Skip to content

Commit

Permalink
Missing files from previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
VoidXH committed Oct 21, 2022
1 parent 45b6239 commit cf3c40f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Cavern.Format/Common/KeyLengthValue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
using System.IO;
using System.Text;

using Cavern.Format.Utilities;

namespace Cavern.Format.Common {
/// <summary>
/// A tag and its data encoded in the format of a key, a length, and a value, most notably used in the EBML format.
Expand Down
12 changes: 12 additions & 0 deletions Cavern.Format/Common/_Exceptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,18 @@ public class DecoderException : Exception {
public DecoderException(int errorCode) : base(string.Format(message, errorCode)) { }
}

/// <summary>
/// Tells that no program was detected in the container/track.
/// </summary>
public class NoProgramException : Exception {
const string message = "No program was detected.";

/// <summary>
/// Tells that no program was detected in the container/track.
/// </summary>
public NoProgramException() : base(message) { }
}

/// <summary>
/// Tells that a decoder which can process an infinite stream is not able to return content length.
/// </summary>
Expand Down
1 change: 1 addition & 0 deletions Cavern.Format/Container/Matroska/Block.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System.IO;

using Cavern.Format.Common;
using Cavern.Format.Utilities;
using Cavern.Utilities;

namespace Cavern.Format.Container.Matroska {
Expand Down

0 comments on commit cf3c40f

Please sign in to comment.