Skip to main content

Response objects from Momento APIs in Momento Vector Indexes

These are the baseline responses for all commands. Some commands will add more data and functionality.

Error

Returned in lieu of an exception.

Constructor

  • innerException: Exception - the exception which caused the error

Methods

  • message(): String - a human readable error message
  • innerException(): Exception - the original exception.
  • errorCode(): MomentoErrorCode - Momento’s own category of errors such as InvalidArgument or BadRequest. See Standards And Practices - Error Handling
  • toString(): String - alias for message()

Success

The command was successful.