#region License
// Copyright 2006 James Newton-King
// http://www.newtonsoft.com
//
// This work is licensed under the Creative Commons Attribution 2.5 License
// http://creativecommons.org/licenses/by/2.5/
//
// You are free:
// * to copy, distribute, display, and perform the work
// * to make derivative works
// * to make commercial use of the work
//
// Under the following conditions:
// * For any reuse or distribution, you must make clear to others the license terms of this work.
// * Any of these conditions can be waived if you get permission from the copyright holder.
#endregion
using System;
using System.Collections.Generic;
using System.Text;
namespace Newtonsoft.Json
{
///
/// The exception thrown when an error occurs during Json serialization or deserialization.
///
sealed class JsonSerializationException : ArgumentException
{
///
/// Initializes a new instance of the class.
///
public JsonSerializationException()
{
}
///
/// Initializes a new instance of the class
/// with a specified error message.
///
/// The error message that explains the reason for the exception.
public JsonSerializationException(string message)
: base(message)
{
}
///
/// Initializes a new instance of the class
/// with a specified error message and a reference to the inner exception that is the cause of this exception.
///
/// The error message that explains the reason for the exception.
/// The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.
public JsonSerializationException(string message, Exception innerException)
: base(message, innerException)
{
}
}
}