Code:
package com.lab126.util.framebuffer;
public class FrameBufferException extends RuntimeException{
private static final long serialVersionUID = 1L;
private int errorCode = 0;
public FrameBufferException() {
super();
}
public FrameBufferException(String msg) {
super(msg);
}
public FrameBufferException(Throwable t) {
super(t);
}
public FrameBufferException(String msg, Throwable t) {
super(msg, t);
}
public int getErrorCode() {
return this.errorCode;
}
}
I think this version is more readable