InvalidArgumentError
Package: Libraries.Language.Errors · Inherits from: Libraries.Language.Errors.Error, Libraries.Language.Object
The InvalidArgumentError class is an error or exception that is thrown when an action is called with an argument that is considered invalid by the called action.
Example Code
use Libraries.Language.Errors.EndOfFileError
use Libraries.Containers.File
class Main
action Main
File file
check
file:OpenForRead("")
detect e is InvalidArgumentError
output "Bad argument: " + e:GetErrorMessage()
end
end
end