using adas_core.Domain.Enums; namespace adas_core.Application.Exceptions; /// /// Represents the exception that is thrown when data is encountered in a format that is not valid or expected. /// /// public class InvalidFormatException : Exception { /// /// Initializes a new instance of the class with a specified error message. /// /// The error message that describes the reason for the exception. /// public InvalidFormatException(HttpEnum.ErrorMessage message) : base(((int)message).ToString()) { } /// /// Initializes a new instance of the class with a specified error message. /// /// The error message that describes the reason for the exception. /// public InvalidFormatException(string message) : base(message) { } }