using System; namespace QRCoder.Exceptions { public class DataTooLongException : Exception { public DataTooLongException(string eccLevel, string encodingMode, int maxSizeByte) : base( $"The given payload exceeds the maximum size of the QR code standard. The maximum size allowed for the choosen paramters (ECC level={eccLevel}, EncodingMode={encodingMode}) is {maxSizeByte} byte." ){} } }