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

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

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

    /**
	 * 
	 */
    private static final long                             serialVersionUID = -5794514989326146456L;
    public static final Parcelable.Creator<BeemException> CREATOR          = new Creator<BeemException>() {

	                                                                       @Override
	                                                                       public BeemException createFromParcel(
	                                                                               Parcel source) {
		                                                                   // TODO
		                                                                   // Auto-generated
		                                                                   // method stub
		                                                                   return new BeemException(source);
	                                                                       }

	                                                                       @Override
	                                                                       public BeemException[] newArray(int size) {
		                                                                   // TODO
		                                                                   // Auto-generated
		                                                                   // method stub
		                                                                   return new BeemException[size];
	                                                                       }
	                                                                   };

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

    private BeemException(Parcel parcel) {
	this(parcel.readString());
    }

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

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

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

    @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());
    }

}
