Package sonia.scm
Class ExceptionWithContext
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
sonia.scm.ExceptionWithContext
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AlreadyExistsException
,BadRequestException
,BranchAlreadyExistsException
,CannotDeleteDefaultBranchException
,ConcurrentModificationException
,ExportFailedException
,FileLockedException
,ImportFailedException
,IncompatibleEnvironmentForImportException
,IntegrateChangesFromWorkdirException
,InternalRepositoryException
,ModificationFailedException
,NotFoundException
,NotUniqueRevisionException
,PushFailedException
,ReadOnlyException
,StoreReadOnlyException
,WorkdirCreationException
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ExceptionWithContext
(List<ContextEntry> context, String message) protected
ExceptionWithContext
(List<ContextEntry> context, String message, Exception cause) protected
ExceptionWithContext
(List<ContextEntry> context, List<ExceptionWithContext.AdditionalMessage> additionalMessages, String message) protected
ExceptionWithContext
(List<ContextEntry> context, List<ExceptionWithContext.AdditionalMessage> additionalMessages, String message, Exception 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
-
ExceptionWithContext
-
ExceptionWithContext
protected ExceptionWithContext(List<ContextEntry> context, List<ExceptionWithContext.AdditionalMessage> additionalMessages, String message) -
ExceptionWithContext
-
ExceptionWithContext
protected ExceptionWithContext(List<ContextEntry> context, List<ExceptionWithContext.AdditionalMessage> additionalMessages, String message, Exception cause)
-
-
Method Details
-
getContext
-
getCode
-
getUrl
Returns an url which gives more information about the exception or an empty optional. The method returns an empty optional by default and can be overwritten.- Since:
- 2.5.0
-
getAdditionalMessages
-