Custom error class representing an error that occurs when invalid dimensions are provided. This error is thrown when non-numeric or otherwise invalid width or height values are given.
Creates a new instance of the InvalidDimError class with a default error message.
The error message.
The name of the error.
Optional
The type of the error.
Returns serialized error object.
The serialized error object.
Returns a string representation of the error message, prefixed with "[]".
A formatted error message.
Custom error class representing an error that occurs when invalid dimensions are provided. This error is thrown when non-numeric or otherwise invalid width or height values are given.