public class PunchlineException extends Exception
The intent is to make it possible to provide a unified output to the user, or to the PunchPlatform HMI, with an exception subtyping and a json structure typing allowing the HMI to display errors on the PML model (e.g. subscription binding errors vs parameter typing error)
| Constructor and Description | 
|---|
| PunchlineException()Ctor | 
| PunchlineException(Exception e) | 
| PunchlineException(String errorMessage) | 
| PunchlineException(String errorMessage,
                  Throwable cause) | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getMessage() | 
| String | toJson() | 
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic PunchlineException(Exception e)
e - the source exceptionpublic PunchlineException()
public PunchlineException(String errorMessage)
errorMessage - the error messagepublic String getMessage()
getMessage in class Throwablepublic String toJson()
Copyright © 2023. All rights reserved.