package com.hh.execption;

import android.content.Context;


public class HhException extends Exception{


	private static final long serialVersionUID = 1L;

	private int code;
	private String message;



	@Override
	public String getMessage() {
		return message;
	}

	public HhException(){};
	public HhException(String pMessage){
		super(pMessage);
		this.message=pMessage;
	}
	public HhException(Context pContext, int pMessageRes){
		super(pContext.getResources().getString(pMessageRes));
	}

	public HhException(String pTitre, String pMessage){
		super(pTitre+" : "+pMessage);
	}

	public static String getExceptionMessage(Exception e){

		if(e.getMessage()!=null)
			return e.getMessage();
		return e.toString();
	}

	@Override
	public void printStackTrace() {
		super.printStackTrace();
	}
}

@@ -100,16 +100,17 @@
 tion%7B%0A%0A%0A
+%0A
 %09private

add deleteAll wirh observe