Table of Contents

Class DataTooLongException

Namespace
Net.Codecrete.QrCodeGenerator
Assembly
QrCodeGenerator.dll

The exception that is thrown when the supplied data does not fit in the QR code.

public class DataTooLongException : ArgumentException, ISerializable
Inheritance
DataTooLongException
Implements
Inherited Members

Remarks

Ways to handle this exception include:

  • Decrease the error correction level (see QrCode.Ecc).
  • Increase the maxVersion argument if the method provides control over the version. If not, the method tried up to the maximum version of 40.
  • Reduce the amount of text or binary data.

Constructors

DataTooLongException(string)

Initializes a new instance of the DataTooLongException class.

public DataTooLongException(string message)

Parameters

message string

The message that describes the error.