I’m trying to display error messages from a SS service.
I’m throwing the following
throw new ArgumentException("Somthing not right here!!!!");
And in my vue component the calling code is the following
try {
let request = new CreateUserVehicle();
var response = await createUserVehicle(request);
this.userVehicle = response.userVehicle;
} catch (error) {
console.log(error.responseStatus);
this.responseStatus = error.responseStatus || error;
}
the console log is only showing
ResponseStatus {errorCode: "400", message: "ArgumentException"}
How do I show the message that I am throwing in the service? I’ve tried looking at the techstacks project but can’t figure out how it is done.