1 40 package org.dspace.authorize; 41 42 import org.dspace.content.DSpaceObject; 43 44 51 public class AuthorizeException extends Exception 52 { 53 private int myaction; 55 private DSpaceObject myobject; 57 60 public AuthorizeException() 61 { 62 super(); 63 64 myaction = -1; 65 myobject = null; 66 } 67 68 73 public AuthorizeException(String message) 74 { 75 super(message); 76 77 myaction = -1; 78 myobject = null; 79 } 80 81 87 public AuthorizeException(String message, DSpaceObject o, int a) 88 { 89 super(message); 90 91 myobject = o; 92 myaction = a; 93 } 94 95 public int getAction() 96 { 97 return myaction; 98 } 99 100 public DSpaceObject getObject() 101 { 102 return myobject; 103 } 104 } 105 | Popular Tags |