Class P4JavaException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AccessException,ConfigException,ConnectionException,FileDecoderException,FileEncoderException,NoSuchObjectException,OptionsException,RequestException,ResourceException
Unless otherwise noted, all exceptions thrown across PJava's public methods and interfaces are a subclass of this class or the associated P4JavaError class; this means any OS or JVM (etc.) exceptions are wrapped in a suitable subclass.
P4JavaException error messages are deliberately not internationalized or localized: in general, almost all end-user-visible error messages are generated by the underlying Perforce server; these are simply wrapped and passed-through as-is (and will be localised if they were localised on the server). All other error messages are either wrapped OS messages (which will be internationalized if the OS internationalized them) or a very limited set of English error messages from within P4Java itself. Since this latter set is tiny, it has been left in the en/us locale, but this can be changed if there's enough demand.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionP4JavaException(String message) P4JavaException(String message, Throwable cause) P4JavaException(Throwable cause) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
P4JavaException
public P4JavaException() -
P4JavaException
-
P4JavaException
-
P4JavaException
-