/**
 * 
 */
package com.beem.project.beem;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author darisk
 *
 */
public class BeemException extends Exception implements Parcelable  {

    public static final Parcelable.Creator<BeemException> CREATOR = new Creator<BeemException>() {
    
        @Override
        public BeemException[] newArray(int size) {
    	// TODO Auto-generated method stub
    	   return new BeemException[size];
        }
    
        @Override
        public BeemException createFromParcel(Parcel source) {
    	// TODO Auto-generated method stub
    	    return new BeemException(source);
        }
    };
    
    public BeemException() {
	super();
	// TODO Auto-generated constructor stub
    }

    public BeemException(String detailMessage, Throwable throwable) {
	super(detailMessage, throwable);
	// TODO Auto-generated constructor stub
    }

    public BeemException(String detailMessage) {
	super(detailMessage);
	// TODO Auto-generated constructor stub
    }

    public BeemException(Throwable throwable) {
	super(throwable);
	// TODO Auto-generated constructor stub
    }
    
    private BeemException(Parcel parcel){
	this(parcel.readString());
    }
     
    @Override
    public int describeContents() {
	// TODO Auto-generated method stub
	return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
	// TODO Auto-generated method stub
	dest.writeString(getLocalizedMessage());
    }

    
}
