View Single Post
Old 10-27-2009, 04:05 PM   #4
dr_g100k
Member
dr_g100k began at the beginning.
 
Posts: 19
Karma: 12
Join Date: Aug 2009
Device: Kindle DX
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
dr_g100k is offline   Reply With Quote