Class RefusedTargetException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
java.io.FileNotFoundException
com.iizix.jetty.RefusedTargetException
- All Implemented Interfaces:
Serializable
The refusal of an external page BY RULE: a target the server decided not to serve - the VSViewer's page and its initialization data on a production server - as opposed to a file that should exist and does not (CC-FIX-VSVIEWER-FOLLOWUP; AL-D-5 of CC-FIX-VSVIEWER-APPS-LINK, ruled 2026-11-12).
CustomDefaultServlet answers it as it answers every page that is not found - status 404 with the fixed body "Not found", and nothing of the reason - and logs ONE WARNING line with the reason and without a stack trace. Anyone can cause such a request with a URL: it is not a failure of the server, which logged SEVERE with the stack of a FileNotFoundException for it until then. A FileNotFoundException that is not of this class stays what it was: a failure, logged SEVERE with its stack.It is a FileNotFoundException, so that every other caller of a page's printing answers it as a page that is not found.
The message is the reason for the log line: what was refused and why, and nothing of the request's query. The client is never told it.
- Author:
- Christopher Mindus
- See Also:
Constructor Summary
ConstructorsMethod Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Constructor Details
RefusedTargetException
Constructor.- Parameters:
reason- The reason for the log line: what was refused and why. Nothing of the request's query belongs in it.