1 27 package org.jruby.exceptions; 28 29 public class MainExitException extends RuntimeException { 30 private static final long serialVersionUID = -8585821821150293755L; 31 boolean usageError; 32 int status; 33 private boolean aborted; 34 35 36 public MainExitException(int status, String message) { 37 super(message); 38 39 this.status = status; 40 } 41 42 public MainExitException(int status, boolean aborted) { 43 super("aborted"); 44 45 this.status = status; 46 this.aborted = aborted; 47 } 48 49 public int getStatus() { 50 return status; 51 } 52 53 public void setStatus(int status) { 54 this.status = status; 55 } 56 57 public void setAborted(boolean aborted) { 58 this.aborted = aborted; 59 } 60 61 public boolean isAborted() { 62 return this.aborted; 63 } 64 65 public boolean isUsageError() { 66 return usageError; 67 } 68 69 public void setUsageError(boolean usageError) { 70 this.usageError = usageError; 71 } 72 73 public Throwable fillInStackTrace() { 74 return this; 75 } 76 } 77 | Popular Tags |