Used ExpectedError instead of Exception to tell that the failure is expected obviously

This commit is contained in:
Trustin Lee 2008-11-08 11:59:23 +00:00
parent 9aed1addb1
commit c5a211e07a

View File

@ -68,7 +68,7 @@ public class CompleteChannelFutureTest {
ChannelFutureListener l = new ChannelFutureListener() {
public void operationComplete(ChannelFuture future)
throws Exception {
throw new Exception();
throw new ExpectedError();
}
};
@ -112,4 +112,12 @@ public class CompleteChannelFutureTest {
throw new Error();
}
}
private static class ExpectedError extends Error {
private static final long serialVersionUID = 7059276744882005047L;
ExpectedError() {
super();
}
}
}