public class ErrorHandler
extends java.lang.Object
| Constructor and Description |
|---|
ErrorHandler() |
| Modifier and Type | Method and Description |
|---|---|
static com.amazon.speech.speechlet.SpeechletResponse |
failed(java.lang.String message)
Sends a failure response with a given message
|
static com.amazon.speech.speechlet.SpeechletResponse |
nestFailureResponse(java.lang.String message)
Returns an informative message that handles the Nest error messages as described in the Nest API documentation
|
public static com.amazon.speech.speechlet.SpeechletResponse failed(java.lang.String message)
message - a String of the message to provide with the failure responsepublic static com.amazon.speech.speechlet.SpeechletResponse nestFailureResponse(java.lang.String message)
message - a String of the Nest failure response