Package nom.tam.fits

Class LongValueException

All Implemented Interfaces:
Serializable

public class LongValueException extends HeaderCardException
The value cannot fit into the available header space, as requested. Perhaps it's preceded by a very long HIEARACH keyword, or else it's a numerical value that is too long. Either way, there is no way we can represent this value in its current form (and keyword) in a FITS header.
Since:
1.16
Author:
Attila Kovacs
See Also:
  • Constructor Details

    • LongValueException

      public LongValueException(int spaceAvailable)
      Instantiates a new exception about a long value that cannot be fitted into the space available for it in the FITS header.
      Parameters:
      spaceAvailable - the maximum space available for the value field for the given record.
    • LongValueException

      public LongValueException(String key, int spaceAvailable)
      Instantiates a new exception about a long value that cannot be fitted into the space available for it in the FITS header.
      Parameters:
      key - the header keyword for which the exception occurred.
      spaceAvailable - the maximum space available for the value field for the given record.
    • LongValueException

      public LongValueException(int spaceAvailable, String value)
      Instantiates a new exception about a long value that cannot be fitted into the space available for it in the FITS header.
      Parameters:
      spaceAvailable - the maximum space available for the value field for the given record.
      value - the header value that was too long.
    • LongValueException

      public LongValueException(int spaceAvailable, String key, String value)
      Instantiates a new exception about a long value that cannot be fitted into the space available for it in the FITS header.
      Parameters:
      spaceAvailable - the maximum space available for the value field for the given record.
      key - the header keyword for which the exception occurred.
      value - the header value that was too long.