I've seen some PHP applications use lines of code that are like this:
throw new Exception(....);
How do I make one of those? I want to make sort of 'throw' command. What is that called?
For example, I'm writing an application, and I want to make the backend easy to use, so I want to use this when a developer wants to set an environment variable:
add environment("varname","value");
But I have no idea how to make one of those.