1 22 package org.jboss.ha.framework.interfaces; 23 24 import org.jboss.util.NestedException; 25 26 43 44 public class GenericClusteringException 45 extends NestedException 46 { 47 public final static int COMPLETED_YES = 0; 56 public final static int COMPLETED_NO = 1; 57 public final static int COMPLETED_MAYBE = 2; 58 59 public boolean isDefinitive = true; 60 61 public int completed; 65 66 public GenericClusteringException () 67 { 68 this.completed = this.COMPLETED_MAYBE; 69 } 70 71 public GenericClusteringException (int CompletionStatus) 72 { 73 this.completed = CompletionStatus; 74 } 75 76 public GenericClusteringException (int CompletionStatus, String s) 77 { 78 super(s); 79 this.completed = CompletionStatus; 80 } 81 82 public GenericClusteringException (int CompletionStatus, String s, boolean isDefinitive) 83 { 84 super(s); 85 this.completed = CompletionStatus; 86 this.isDefinitive = isDefinitive; 87 } 88 89 public GenericClusteringException (int CompletionStatus, Throwable nested, boolean isDefinitive) 90 { 91 super(nested); 92 this.completed = CompletionStatus; 93 this.isDefinitive = isDefinitive; 94 } 95 96 public GenericClusteringException (int CompletionStatus, Throwable nested) 97 { 98 super(nested); 99 this.completed = CompletionStatus; 100 } 101 102 public int getCompletionStatus () 103 { 104 return this.completed; 105 } 106 107 public void setCompletionStatus (int completionStatus) 108 { 109 this.completed = completionStatus; 110 } 111 112 public boolean isDefinitive () 116 { 117 return this.isDefinitive; 118 } 119 120 public void setIsDefinitive (boolean definitive) 121 { 122 this.isDefinitive = definitive; 123 } 124 } 125
| Popular Tags
|