1 23 package org.objectweb.joram.shared.excepts; 24 25 import org.objectweb.joram.shared.client.MomExceptionReply; 26 27 31 public class MomException extends Exception { 32 protected int type; 33 34 public MomException(int type, String info) { 35 super(info); 36 this.type = type; 37 } 38 39 42 public MomException(String info) { 43 super(info); 44 type = MomExceptionReply.MomException; 45 } 46 47 public int getType() { 48 return type; 49 } 50 } 51 | Popular Tags |