Class InvalidCodeParameters

All Implemented Interfaces:
Serializable

public class InvalidCodeParameters extends RuntimeException
An exception that can be thrown when an invalid code parameters (\(n\) and/or \(k\)) of a code \(\mathsf{C}\) is trying to be used. An invalid combination could be when either \(k\) or \(n\) are non-positive integers or when \(k\) is larger than \(n\).
Since:
1.8
Version:
1.0 (January 28th, 2022)
Author:
Maysara Al Jumaily
See Also:
Code, Serialized Form
  • Constructor Details

    • InvalidCodeParameters

      public InvalidCodeParameters(byte n, byte k)
      Constructs a new runtime exception with the specified code parameters \(n\) and \(k\).
      Parameters:
      n - the length \(n\) of a code \(\mathsf{C}\)
      k - the dimension \(k\) of a code \(\mathsf{C}\)