Runtime Exceptions
NullPointerException
Thrown when an application attempts to use null
in a case where an object is required. These include:
Accessing or modifying the field of a
null
object.Taking the length of
null
as if it were an array.Accessing or modifying the slots of
null
as if it were an array.
IndexOutOfBoundsException
Thrown to indicate that an index of some sort (such as to an array, to a string, or to a vector) is out of range.
FileOperationException
Is an error type that occurs when an operation involving a file or directory fails. This exception can arise due to various reasons, such as:
The file or directory does not exist.
Insufficient permissions to access or modify the file or directory.
A connection issue with the file storage system (e.g., SMB server).
Invalid file paths provided in the operation.
This exception is designed to help identify and handle issues during file operations, enabling developers to troubleshoot errors effectively and ensure robust workflow execution.
Attributes:
message - containing detailed information about the reason for the exception.
path - the location of the file for which the operation failed.
Last updated