/// <param name="frameID">The ID of the unrecognized frame.</param>


        /// <summary>
        /// Initializes a new instance of NoFrameWriterProvidedException.
        /// </summary>
        /// <param name="frame">The frame that did not support the write operation.</param>
        /// <param name="version">The ID3 v2 major version of the tag in which the frame was to be written.</param>
        public NoFrameWriterProvidedException(Frames.Frame frame, ID3v2MajorVersion version)
        {
            this._frame   = frame;
            this._version = version;
        }
 /// <summary>
 /// Initializes a new instance of NoFrameWriterProvidedException.
 /// </summary>
 /// <param name="frame">The frame that did not support the write operation.</param>
 /// <param name="version">The ID3 v2 major version of the tag in which the frame was to be written.</param>
 /// <param name="message">The error message that explains the reason for the exception.</param>
 /// <param name="inner">The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.</param>
 public NoFrameWriterProvidedException(Frames.Frame frame, ID3v2MajorVersion version, string message, Exception inner) : base(message, inner)
 {
     this._frame   = frame;
     this._version = version;
 }
Ejemplo n.º 3
0
		public WritingWarningEventArgs(NonFatalException exception, Frame frame)
		{
			this._frame=frame;
			this._exception=exception;
		}
Ejemplo n.º 4
0
		private void WriteFrame(Frame frame, Stream stream, ID3v2MajorVersion version, EncodingScheme encoding)
		{
			FrameWriter writer=frame.CreateWriter(version, encoding);
			if(writer==null)
			{
				throw new NoFrameWriterProvidedException(frame, version);
			}
			writer.WriteToStream(stream);
		}
Ejemplo n.º 5
0
		private void RaiseWritingWarning(NonFatalException exception, Frame frameBeingWritten)
		{
			if(WritingWarning!=null)
			{
				WritingWarning(this, new WritingWarningEventArgs(exception, frameBeingWritten));
			}
		}
 /// <summary>
 /// Initializes a new instance of NoFrameWriterProvidedException.
 /// </summary>
 /// <param name="frame">The frame that did not support the write operation.</param>
 /// <param name="version">The ID3 v2 major version of the tag in which the frame was to be written.</param>
 /// <param name="message">The error message that explains the reason for the exception.</param>
 /// <param name="inner">The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.</param>
 public NoFrameWriterProvidedException(Frames.Frame frame, ID3v2MajorVersion version,string message, Exception inner)
     : base(message, inner)
 {
     this._frame=frame;
     this._version=version;
 }
 /// <param name="frameID">The ID of the unrecognized frame.</param>
 /// <summary>
 /// Initializes a new instance of NoFrameWriterProvidedException.
 /// </summary>
 /// <param name="frame">The frame that did not support the write operation.</param>
 /// <param name="version">The ID3 v2 major version of the tag in which the frame was to be written.</param>
 public NoFrameWriterProvidedException(Frames.Frame frame, ID3v2MajorVersion version)
 {
     this._frame=frame;
     this._version=version;
 }