using System;
using Microsoft.SPOT;

namespace CPF
{
    // The exception that is thrown when the format of an argument does not meet the parameter specifications of the invoked method.
    public class FormatException : Exception
    {
        internal static string ERROR_MESSAGE = "Format string is not valid.";

        // Initializes a new instance of the FormatException class.
        public FormatException()
            : base()
        {
        }

        // Initializes a new instance of the FormatException class with a specified error message.
        public FormatException(string message)
            : base(message)
        {
        }

        // Initializes a new instance of the FormatException class with a specified error message and a reference to the inner exception that is the cause of this exception.
        public FormatException(string message, Exception ex)
            : base(message, ex)
        {
        }

    }
}
