/// <summary>
/// 不正な画像データに対してスローされる例外
/// </summary>
+ [Serializable]
public class InvalidImageException : Exception
{
public InvalidImageException() : base() { }
public InvalidImageException(string message) : base(message) { }
public InvalidImageException(string message, Exception innerException) : base(message, innerException) { }
- public InvalidImageException(SerializationInfo info, StreamingContext context) : base(info, context) { }
+ protected InvalidImageException(SerializationInfo info, StreamingContext context) : base(info, context) { }
}
}
using System;
using System.Collections.Generic;
using System.Linq;
+using System.Runtime.Serialization;
using System.Text;
namespace OpenTween
/// <summary>
/// タブの操作時に問題が発生した場合にスローされる例外
/// </summary>
+ [Serializable]
public class TabException : Exception
{
public TabException() : base() { }
public TabException(string message) : base(message) { }
public TabException(string message, Exception innerException) : base(message, innerException) { }
+ protected TabException(SerializationInfo info, StreamingContext context) : base(info, context) { }
}
}
using System;
using System.Collections.Generic;
using System.Linq;
+using System.Runtime.Serialization;
using System.Text;
namespace OpenTween
/// <summary>
/// Twitter などの API 実行時に発生した例外を扱うクラス
/// </summary>
+ [Serializable]
public class WebApiException : Exception
{
public readonly string ResponseText = null;
public WebApiException() : base() { }
public WebApiException(string message) : base(message) { }
public WebApiException(string message, Exception innerException) : base(message, innerException) { }
+ protected WebApiException(SerializationInfo info, StreamingContext context) : base(info, context) { }
public WebApiException(string message, string responseText)
: this(message)