Package com.vaadin.flow.server
Class ServiceException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.vaadin.flow.server.ServiceException
-
- All Implemented Interfaces:
Serializable
public class ServiceException extends Exception
Thrown for problems which occur in theVaadinService
layer.- Since:
- 1.0
- Author:
- Vaadin Ltd
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ServiceException(String message)
Creates an exception which contains the given message.ServiceException(String message, Throwable throwable)
Creates an exception which wraps the given throwable and contains the given message.ServiceException(Throwable throwable)
Creates an exception which wraps the given throwable.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ServiceException
public ServiceException(Throwable throwable)
Creates an exception which wraps the given throwable.- Parameters:
throwable
- the throwable to wrap
-
ServiceException
public ServiceException(String message)
Creates an exception which contains the given message.- Parameters:
message
- the message
-
-