Multiple choice technology security

What exception is thrown by the security API when a user attempts to access a resource that they are not authorized for?

  1. SecurityException

  2. AccessException

  3. AuthenitcationException

  4. Exception

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

SecurityException is the standard exception thrown by security APIs when authorization fails. Unlike AccessException or generic Exception, SecurityException specifically indicates security-related authorization issues. AuthenticationException (misspelled in option C) would apply to authentication failures, not authorization.