Masa guna gwt-rpc-java servlet aku kena buat server side error handling.
Untuk membolehkan exception tu boleh cross antara server side & client side aku kena buat satu exception class aku sendiri yang extend dari serializableException.
Code dia ada kat bawah tu aku pastekan.
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package my.com.client.common;
import com.google.gwt.user.client.rpc.SerializationException;
/**
*
* @author Peyo
*/
public class MyException extends SerializationException {
public MyException() {
super();
}
public MyException(String string) {
super(string);
}
public MyException(Throwable cause) {
super(cause);
}
public MyException(String string,Throwable cause) {
super(string, cause);
}
}
Malaya Merdeka - from Ash's vinyl collection
9 months ago
0 comments:
Post a Comment