User authorization exceptions

If a user is not authorized to connect to the database specified in the connection request, SQLException 04501 is raised.

If a user with readOnlyAccess attempts to write to a database, SQLException 08004 - connection refused is raised.

Related concepts
Setting the default access mode
Setting the access mode for particular users
Related reference
Notes on user authorization