中の例外のうち、メッセージを取得する方法:情報の多くはresponseText
であり私はいくつかのMVCコードを持ってjQueryの
changeTextFormat = function (data) {
alert(data.responseText);
alert(data.status);
}
:私は、機能を持っている
throw new HttpException(403, "my error text", new Exception("Show me this message"));
JavaScriptで私がアクセスしたいのは、"my error text"
または"Show me this message"
です。
responseText
からこれを取得する方法を教えてもらえますか?