Package com.io7m.calino.vanilla.internal
Class CLN1ValidationErrors
java.lang.Object
com.io7m.calino.vanilla.internal.CLN1ValidationErrors
A factory of errors.
-
Constructor Summary
ConstructorsConstructorDescriptionCLN1ValidationErrors
(URI inSource, CLN1ValidationStrings inStrings) A factory of errors. -
Method Summary
Modifier and TypeMethodDescriptionerror2DCompressedDataSizeMismatch
(CLNSectionReadableType section, CLNImage2DDescription mipMap, long sizeReceived) Construct an error.error2DExpectedSizeZ1
(CLNSectionReadableImageInfoType section, int sizeZ) Construct an error.error2DMipLevelDuplicate
(CLNSectionReadableImage2DType section, int level) Construct an error.error2DMipLevelGaps
(CLNSectionReadableImage2DType section, int mipHighest) Construct an error.Construct an error.error2DUncompressedDataCRC32Mismatch
(CLNSectionReadableImage2DType section, CLNImage2DDescription mipMap, long crc32Received) Construct an error.errorArrayCompressedDataSizeMismatch
(CLNSectionReadableType section, CLNImageArrayDescription mipMap, long sizeReceived) Construct an error.errorArrayLayerCount
(CLNSectionReadableImageArrayType section, int sizeZ, int layerHighest) Construct an error.errorArrayMipLayerGaps
(CLNSectionReadableImageArrayType section, int level, int layerHighest, Set<Integer> receivedLayers) Construct an error.errorArrayMipLevelGaps
(CLNSectionReadableImageArrayType section, int mipHighest) Construct an error.errorArrayMipNotUnique
(CLNSectionReadableImageArrayType section, int level, int layer) Construct an error.Construct an error.errorArrayUncompressedDataCRC32Mismatch
(CLNSectionReadableType section, CLNImageArrayDescription mipMap, long crc32Received) Construct an error.errorCubeCompressedDataSizeMismatch
(CLNSectionReadableImageCubeType section, CLNImageCubeDescription mipMap, long sizeReceived) Construct an error.errorCubeExpectedSizeZ1
(CLNSectionReadableImageInfoType section, int sizeZ) Construct an error.errorCubeMipFaceMissing
(CLNSectionReadableImageCubeType section, int level, CLNCubeFace face) Construct an error.errorCubeMipLevelDuplicate
(CLNSectionReadableImageCubeType section, int level) Construct an error.errorCubeMipLevelGaps
(CLNSectionReadableImageCubeType section, int level) Construct an error.Construct an error.errorCubeUncompressedDataCRC32Mismatch
(CLNSectionReadableType section, CLNImageCubeDescription mipMap, long crc32Received) Construct an error.Construct an error.Construct an error.Construct an error.errorOfException
(CLNSectionReadableType section, Exception e) Construct an error.errorOfException
(CLNSectionReadableType section, Exception e, String message) Construct an error.warn2DCompressedSizeZero
(CLNSectionReadableImage2DType section, CLNImage2DDescription description) Construct an error.Construct an error.warn2DUncompressedDataSizeMismatch
(CLNSectionReadableImage2DType section, CLNImage2DDescription description) Construct an error.warn2DUncompressedSizeZero
(CLNSectionReadableImage2DType section, CLNImage2DDescription description) Construct an error.warnArrayCompressedSizeZero
(CLNSectionReadableImageArrayType section, CLNImageArrayDescription description) Construct an error.Construct an error.warnArrayUncompressedDataSizeMismatch
(CLNSectionReadableImageArrayType section, CLNImageArrayDescription description) Construct an error.warnArrayUncompressedSizeZero
(CLNSectionReadableImageArrayType section, CLNImageArrayDescription description) Construct an error.warnCubeCompressedSizeZero
(CLNSectionReadableImageCubeType section, CLNImageCubeDescription description) Construct an error.Construct an error.warnCubeUncompressedDataSizeMismatch
(CLNSectionReadableImageCubeType section, CLNImageCubeDescription description) Construct an error.warnCubeUncompressedSizeZero
(CLNSectionReadableImageCubeType section, CLNImageCubeDescription description) Construct an error.Construct an error.Construct an error.warnTrailingData
(long offset, long octets) Construct an error.
-
Constructor Details
-
CLN1ValidationErrors
A factory of errors.- Parameters:
inSource
- The source fileinStrings
- The error strings
-
-
Method Details
-
errorOfException
Construct an error.- Parameters:
section
- The sectione
- The exception- Returns:
- An error
-
errorOfException
public CLNValidationError errorOfException(CLNSectionReadableType section, Exception e, String message) Construct an error.- Parameters:
section
- The sectione
- The exceptionmessage
- The message- Returns:
- An error
-
error2DCompressedDataSizeMismatch
public CLNValidationError error2DCompressedDataSizeMismatch(CLNSectionReadableType section, CLNImage2DDescription mipMap, long sizeReceived) Construct an error.- Parameters:
section
- The sectionmipMap
- The mipMapsizeReceived
- The received size- Returns:
- An error
-
error2DUncompressedDataCRC32Mismatch
public CLNValidationError error2DUncompressedDataCRC32Mismatch(CLNSectionReadableImage2DType section, CLNImage2DDescription mipMap, long crc32Received) Construct an error.- Parameters:
section
- The sectionmipMap
- The mipMapcrc32Received
- The CRC32- Returns:
- An error
-
error2DExpectedSizeZ1
Construct an error.- Parameters:
section
- The sectionsizeZ
- The Z size- Returns:
- An error
-
error2DMipLevelDuplicate
public CLNValidationError error2DMipLevelDuplicate(CLNSectionReadableImage2DType section, int level) Construct an error.- Parameters:
section
- The sectionlevel
- The level- Returns:
- An error
-
error2DMipLevelGaps
public CLNValidationError error2DMipLevelGaps(CLNSectionReadableImage2DType section, int mipHighest) Construct an error.- Parameters:
section
- The sectionmipHighest
- The highest mip level- Returns:
- An error
-
errorImageDataNotPresent
Construct an error.- Returns:
- An error
-
errorArrayCompressedDataSizeMismatch
public CLNValidationError errorArrayCompressedDataSizeMismatch(CLNSectionReadableType section, CLNImageArrayDescription mipMap, long sizeReceived) Construct an error.- Parameters:
section
- The sectionmipMap
- The mipMapsizeReceived
- The received size- Returns:
- An error
-
errorArrayUncompressedDataCRC32Mismatch
public CLNValidationError errorArrayUncompressedDataCRC32Mismatch(CLNSectionReadableType section, CLNImageArrayDescription mipMap, long crc32Received) Construct an error.- Parameters:
section
- The sectionmipMap
- The mipMapcrc32Received
- The CRC32- Returns:
- An error
-
errorImageInfoNotPresent
Construct an error.- Returns:
- An error
-
errorArrayMipNotUnique
public CLNValidationError errorArrayMipNotUnique(CLNSectionReadableImageArrayType section, int level, int layer) Construct an error.- Parameters:
section
- The sectionlayer
- The layerlevel
- The mip level- Returns:
- An error
-
errorArrayMipLevelGaps
public CLNValidationError errorArrayMipLevelGaps(CLNSectionReadableImageArrayType section, int mipHighest) Construct an error.- Parameters:
section
- The sectionmipHighest
- The highest mip level- Returns:
- An error
-
errorArrayMipLayerGaps
public CLNValidationError errorArrayMipLayerGaps(CLNSectionReadableImageArrayType section, int level, int layerHighest, Set<Integer> receivedLayers) Construct an error.- Parameters:
section
- The sectionlevel
- The mip levellayerHighest
- The highest layerreceivedLayers
- The received layers- Returns:
- An error
-
errorArrayLayerCount
public CLNValidationError errorArrayLayerCount(CLNSectionReadableImageArrayType section, int sizeZ, int layerHighest) Construct an error.- Parameters:
section
- The sectionlayerHighest
- The mip levelsizeZ
- The declared Z size- Returns:
- An error
-
warnArrayUncompressedDataSizeMismatch
public CLNValidationError warnArrayUncompressedDataSizeMismatch(CLNSectionReadableImageArrayType section, CLNImageArrayDescription description) Construct an error.- Parameters:
section
- The sectiondescription
- The description- Returns:
- An error
-
warn2DUncompressedDataSizeMismatch
public CLNValidationError warn2DUncompressedDataSizeMismatch(CLNSectionReadableImage2DType section, CLNImage2DDescription description) Construct an error.- Parameters:
section
- The sectiondescription
- The description- Returns:
- An error
-
warnArrayCompressedSizeZero
public CLNValidationError warnArrayCompressedSizeZero(CLNSectionReadableImageArrayType section, CLNImageArrayDescription description) Construct an error.- Parameters:
section
- The sectiondescription
- The description- Returns:
- An error
-
warn2DCompressedSizeZero
public CLNValidationError warn2DCompressedSizeZero(CLNSectionReadableImage2DType section, CLNImage2DDescription description) Construct an error.- Parameters:
section
- The sectiondescription
- The description- Returns:
- An error
-
warnArrayUncompressedSizeZero
public CLNValidationError warnArrayUncompressedSizeZero(CLNSectionReadableImageArrayType section, CLNImageArrayDescription description) Construct an error.- Parameters:
section
- The sectiondescription
- The description- Returns:
- An error
-
warn2DUncompressedSizeZero
public CLNValidationError warn2DUncompressedSizeZero(CLNSectionReadableImage2DType section, CLNImage2DDescription description) Construct an error.- Parameters:
section
- The sectiondescription
- The description- Returns:
- An error
-
error2DNoMipmaps
Construct an error.- Parameters:
section
- The section- Returns:
- An error
-
errorArrayNoMipmaps
Construct an error.- Parameters:
section
- The section- Returns:
- An error
-
errorCubeNoMipmaps
Construct an error.- Parameters:
section
- The section- Returns:
- An error
-
warnSectionUnaligned
Construct an error.- Parameters:
section
- The section- Returns:
- An error
-
warnEndSectionNotZeroSize
Construct an error.- Parameters:
section
- The section- Returns:
- An error
-
errorNoEndSection
Construct an error.- Returns:
- An error
-
warnArrayImageOffsetZero
Construct an error.- Parameters:
section
- The section- Returns:
- An error
-
warn2DImageOffsetZero
Construct an error.- Parameters:
section
- The section- Returns:
- An error
-
warnTrailingData
Construct an error.- Parameters:
octets
- The octetsoffset
- The offset of the data- Returns:
- An error
-
errorCubeExpectedSizeZ1
public CLNValidationError errorCubeExpectedSizeZ1(CLNSectionReadableImageInfoType section, int sizeZ) Construct an error.- Parameters:
section
- The sectionsizeZ
- The Z size- Returns:
- An error
-
errorCubeMipLevelDuplicate
public CLNValidationError errorCubeMipLevelDuplicate(CLNSectionReadableImageCubeType section, int level) Construct an error.- Parameters:
section
- The sectionlevel
- The level- Returns:
- An error
-
errorCubeMipLevelGaps
Construct an error.- Parameters:
section
- The sectionlevel
- The level- Returns:
- An error
-
errorCubeMipFaceMissing
public CLNValidationError errorCubeMipFaceMissing(CLNSectionReadableImageCubeType section, int level, CLNCubeFace face) Construct an error.- Parameters:
section
- The sectionlevel
- The levelface
- The cube face- Returns:
- An error
-
warnCubeUncompressedSizeZero
public CLNValidationError warnCubeUncompressedSizeZero(CLNSectionReadableImageCubeType section, CLNImageCubeDescription description) Construct an error.- Parameters:
section
- The sectiondescription
- The description- Returns:
- An error
-
warnCubeCompressedSizeZero
public CLNValidationError warnCubeCompressedSizeZero(CLNSectionReadableImageCubeType section, CLNImageCubeDescription description) Construct an error.- Parameters:
section
- The sectiondescription
- The description- Returns:
- An error
-
warnCubeImageOffsetZero
Construct an error.- Parameters:
section
- The section- Returns:
- An error
-
warnCubeUncompressedDataSizeMismatch
public CLNValidationError warnCubeUncompressedDataSizeMismatch(CLNSectionReadableImageCubeType section, CLNImageCubeDescription description) Construct an error.- Parameters:
section
- The sectiondescription
- The description- Returns:
- An error
-
errorCubeCompressedDataSizeMismatch
public CLNValidationError errorCubeCompressedDataSizeMismatch(CLNSectionReadableImageCubeType section, CLNImageCubeDescription mipMap, long sizeReceived) Construct an error.- Parameters:
section
- The sectionmipMap
- The descriptionsizeReceived
- The received size- Returns:
- An error
-
errorCubeUncompressedDataCRC32Mismatch
public CLNValidationError errorCubeUncompressedDataCRC32Mismatch(CLNSectionReadableType section, CLNImageCubeDescription mipMap, long crc32Received) Construct an error.- Parameters:
section
- The sectionmipMap
- The mipMapcrc32Received
- The CRC32- Returns:
- An error
-