Package com.vaadin.flow.templatemodel
Class InvalidTemplateModelException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.vaadin.flow.templatemodel.InvalidTemplateModelException
-
- All Implemented Interfaces:
Serializable
@Deprecated public class InvalidTemplateModelException extends RuntimeException
Deprecated.Template model and polymer template support is deprecated - we recommend you to useLitTemplate
instead. Read more details from the Vaadin blog. For lit templates, you can use@Id
mapping and the component API or the element API with property synchronization instead.Exception thrown when encountering an invalid type in a template model.- Since:
- 1.0
- Author:
- Vaadin Ltd
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InvalidTemplateModelException(String message)
Deprecated.Creates a new exception with the given message.InvalidTemplateModelException(String message, Throwable cause)
Deprecated.Creates a new exception with the given message and cause.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
InvalidTemplateModelException
public InvalidTemplateModelException(String message, Throwable cause)
Deprecated.Creates a new exception with the given message and cause.- Parameters:
message
- the exception messagecause
- the cause of the exception
-
InvalidTemplateModelException
public InvalidTemplateModelException(String message)
Deprecated.Creates a new exception with the given message.- Parameters:
message
- the exception message
-
-