Update of /cvsroot/ccmtools/java-environment/src/Components In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv4568/src/Components Modified Files: IllegalState.java InvalidConnection.java InvalidAssembly.java AlreadyConnected.java WrongComponentType.java UserException.java InvalidConfiguration.java InvalidName.java CCMException.java InvalidLocation.java CreateFailure.java RemoveFailure.java CookieRequired.java ExceededConnectionLimit.java HomeNotFound.java NoConnection.java Log Message: *) UserException now calculates the repo-id *) all CCM-exceptions copy the message text to java.lang.Exception Index: NoConnection.java =================================================================== RCS file: /cvsroot/ccmtools/java-environment/src/Components/NoConnection.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** NoConnection.java 10 Jan 2007 16:11:28 -0000 1.1 --- NoConnection.java 12 Apr 2007 15:21:42 -0000 1.2 *************** *** 1,18 **** package Components; ! public class NoConnection ! extends Components.UserException { ! private static final long serialVersionUID = 8687891271765409198L; ! private static final String REPOSITORY_ID = "IDL:Components/NoConnection:1.0"; ! ! public NoConnection() { ! super(REPOSITORY_ID); } ! ! public NoConnection(String reason) { ! super(REPOSITORY_ID + " " + reason); } } --- 1,18 ---- package Components; ! public class NoConnection extends Components.UserException { ! private static final long serialVersionUID = 8687891271765409198L; ! ! private static final String DEFAULT_MESSAGE = "no connection"; ! ! public NoConnection() { ! super(DEFAULT_MESSAGE); } ! ! public NoConnection( String reason ) { ! super(reason); } } Index: WrongComponentType.java =================================================================== RCS file: /cvsroot/ccmtools/java-environment/src/Components/WrongComponentType.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** WrongComponentType.java 10 Jan 2007 16:11:28 -0000 1.1 --- WrongComponentType.java 12 Apr 2007 15:21:42 -0000 1.2 *************** *** 1,18 **** package Components; ! public class WrongComponentType ! extends Components.UserException { ! private static final long serialVersionUID = 2208948298152201554L; ! private static final String REPOSITORY_ID = "IDL:Components/WrongComponentType:1.0"; ! ! public WrongComponentType() { ! super(REPOSITORY_ID); } ! ! public WrongComponentType(String reason) { ! super(REPOSITORY_ID + " " + reason); } } --- 1,18 ---- package Components; ! public class WrongComponentType extends Components.UserException { ! private static final long serialVersionUID = 2208948298152201554L; ! ! private static final String DEFAULT_MESSAGE = "wrong component type"; ! ! public WrongComponentType() { ! super(DEFAULT_MESSAGE); } ! ! public WrongComponentType( String reason ) { ! super(reason); } } Index: ExceededConnectionLimit.java =================================================================== RCS file: /cvsroot/ccmtools/java-environment/src/Components/ExceededConnectionLimit.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ExceededConnectionLimit.java 10 Jan 2007 16:11:29 -0000 1.1 --- ExceededConnectionLimit.java 12 Apr 2007 15:21:42 -0000 1.2 *************** *** 1,18 **** package Components; ! public class ExceededConnectionLimit ! extends Components.UserException { ! private static final long serialVersionUID = -5714895177604126672L; ! private static final String REPOSITORY_ID = "IDL:Components/ExceededConnectionLimit:1.0"; ! ! public ExceededConnectionLimit() { ! super(REPOSITORY_ID); } ! ! public ExceededConnectionLimit(String reason) { ! super(REPOSITORY_ID + " " + reason); } } --- 1,18 ---- package Components; ! public class ExceededConnectionLimit extends Components.UserException { ! private static final long serialVersionUID = -5714895177604126672L; ! ! private static final String DEFAULT_MESSAGE = "exceeded connection limit"; ! ! public ExceededConnectionLimit() { ! super(DEFAULT_MESSAGE); } ! ! public ExceededConnectionLimit( String _reason ) { ! super(_reason); } } Index: InvalidAssembly.java =================================================================== RCS file: /cvsroot/ccmtools/java-environment/src/Components/InvalidAssembly.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** InvalidAssembly.java 10 Jan 2007 16:11:29 -0000 1.1 --- InvalidAssembly.java 12 Apr 2007 15:21:42 -0000 1.2 *************** *** 1,18 **** package Components; ! public class InvalidAssembly ! extends Components.UserException { ! private static final long serialVersionUID = 4478890731019313469L; ! private static final String REPOSITORY_ID = "IDL:Components/InvalidAssembly:1.0"; ! ! public InvalidAssembly() { ! super(REPOSITORY_ID); } ! ! public InvalidAssembly(String reason) { ! super(REPOSITORY_ID + " " + reason); } } --- 1,18 ---- package Components; ! public class InvalidAssembly extends Components.UserException { ! private static final long serialVersionUID = 4478890731019313469L; ! ! private static final String DEFAULT_MESSAGE = "invalid assembly"; ! ! public InvalidAssembly() { ! super(DEFAULT_MESSAGE); } ! ! public InvalidAssembly( String _reason ) { ! super(_reason); } } Index: AlreadyConnected.java =================================================================== RCS file: /cvsroot/ccmtools/java-environment/src/Components/AlreadyConnected.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** AlreadyConnected.java 10 Jan 2007 16:11:29 -0000 1.1 --- AlreadyConnected.java 12 Apr 2007 15:21:42 -0000 1.2 *************** *** 5,18 **** { private static final long serialVersionUID = 6886751009749534622L; - private static final String REPOSITORY_ID = "IDL:Components/AlreadyConnected:1.0"; public AlreadyConnected() { ! super(REPOSITORY_ID); } ! public AlreadyConnected(String reason) { ! super(REPOSITORY_ID + " " + reason); } } --- 5,17 ---- { private static final long serialVersionUID = 6886751009749534622L; public AlreadyConnected() { ! super(); } ! public AlreadyConnected(String _reason) { ! super(_reason); } } Index: CookieRequired.java =================================================================== RCS file: /cvsroot/ccmtools/java-environment/src/Components/CookieRequired.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** CookieRequired.java 10 Jan 2007 16:11:29 -0000 1.1 --- CookieRequired.java 12 Apr 2007 15:21:42 -0000 1.2 *************** *** 1,18 **** package Components; ! public class CookieRequired ! extends Components.UserException { ! private static final long serialVersionUID = -1104666651001979980L; ! private static final String REPOSITORY_ID = "IDL:Components/CookieRequired:1.0"; ! ! public CookieRequired() { ! super(REPOSITORY_ID); } ! ! public CookieRequired(String reason) { ! super(REPOSITORY_ID + " " + reason); ! } } --- 1,18 ---- package Components; ! public class CookieRequired extends Components.UserException { ! private static final long serialVersionUID = -1104666651001979980L; ! ! private static final String DEFAULT_MESSAGE = "cookie required"; ! ! public CookieRequired() { ! super(DEFAULT_MESSAGE); } ! ! public CookieRequired( String _reason ) { ! super(_reason); ! } } Index: CreateFailure.java =================================================================== RCS file: /cvsroot/ccmtools/java-environment/src/Components/CreateFailure.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** CreateFailure.java 10 Jan 2007 16:11:28 -0000 1.1 --- CreateFailure.java 12 Apr 2007 15:21:42 -0000 1.2 *************** *** 1,18 **** package Components; ! public class CreateFailure ! extends Components.UserException { ! private static final long serialVersionUID = -4139103203013279104L; ! private static final String REPOSITORY_ID = "IDL:Components/CreateFailure:1.0"; ! ! public CreateFailure() { ! super(REPOSITORY_ID); } - - public CreateFailure(String reason) - { - super(REPOSITORY_ID + " " + reason); - } } --- 1,18 ---- package Components; ! public class CreateFailure extends Components.UserException { ! private static final long serialVersionUID = -4139103203013279104L; ! ! private static final String DEFAULT_MESSAGE = "create failure"; ! ! public CreateFailure() { ! super(DEFAULT_MESSAGE); ! } ! ! public CreateFailure( String _reason ) ! { ! super(_reason); } } Index: InvalidName.java =================================================================== RCS file: /cvsroot/ccmtools/java-environment/src/Components/InvalidName.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** InvalidName.java 10 Jan 2007 16:11:29 -0000 1.1 --- InvalidName.java 12 Apr 2007 15:21:42 -0000 1.2 *************** *** 1,18 **** package Components; ! public class InvalidName ! extends Components.UserException { ! private static final long serialVersionUID = 6897296555631420409L; ! private static final String REPOSITORY_ID = "IDL:Components/InvalidName:1.0"; ! ! public InvalidName() { ! super(REPOSITORY_ID); } ! ! public InvalidName(String reason) { ! super(REPOSITORY_ID + " " + reason); } } --- 1,18 ---- package Components; ! public class InvalidName extends Components.UserException { ! private static final long serialVersionUID = 6897296555631420409L; ! ! private static final String DEFAULT_MESSAGE = "invalid name"; ! ! public InvalidName() { ! super(DEFAULT_MESSAGE); } ! ! public InvalidName( String reason ) { ! super(reason); } } Index: CCMException.java =================================================================== RCS file: /cvsroot/ccmtools/java-environment/src/Components/CCMException.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** CCMException.java 10 Jan 2007 16:11:29 -0000 1.1 --- CCMException.java 12 Apr 2007 15:21:42 -0000 1.2 *************** *** 1,28 **** package Components; ! public class CCMException ! extends Components.UserException { ! private static final long serialVersionUID = -9007924014999270105L; ! private static final String REPOSITORY_ID = "IDL:Components/CCMException:1.0"; ! private CCMExceptionReason reason; ! public CCMException() { ! super(REPOSITORY_ID); setReason(null); } ! public CCMException(CCMExceptionReason r) { ! super(REPOSITORY_ID); setReason(r); } ! ! public CCMException(String reason, CCMExceptionReason r) { ! super(REPOSITORY_ID + " " + reason); ! setReason(r); } --- 1,40 ---- package Components; ! public class CCMException extends Components.UserException { ! private static final long serialVersionUID = -9007924014999270105L; ! ! private static final String DEFAULT_MESSAGE = "CCM exception"; ! private CCMExceptionReason reason; ! public CCMException() { ! super(DEFAULT_MESSAGE); setReason(null); } ! public CCMException( CCMExceptionReason r ) { ! super(DEFAULT_MESSAGE); setReason(r); } ! ! public CCMException( String message, CCMExceptionReason r ) { ! super(message); ! setReason(r); ! } ! ! public CCMException( String message, CCMExceptionReason r, Throwable cause ) ! { ! super(message, cause); ! setReason(r); ! } ! ! public CCMException( CCMExceptionReason r, Throwable cause ) ! { ! super(DEFAULT_MESSAGE, cause); ! setReason(r); } *************** *** 30,36 **** { return this.reason; ! } ! public void setReason(CCMExceptionReason value) { this.reason = value; --- 42,48 ---- { return this.reason; ! } ! public void setReason( CCMExceptionReason value ) { this.reason = value; Index: IllegalState.java =================================================================== RCS file: /cvsroot/ccmtools/java-environment/src/Components/IllegalState.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** IllegalState.java 10 Jan 2007 16:11:28 -0000 1.1 --- IllegalState.java 12 Apr 2007 15:21:42 -0000 1.2 *************** *** 1,18 **** package Components; ! public class IllegalState ! extends Components.UserException { ! private static final long serialVersionUID = -6931824844072445652L; ! private static final String REPOSITORY_ID = "IDL:Components/IllegalState:1.0"; ! ! public IllegalState() { ! super(REPOSITORY_ID); } ! ! public IllegalState(String reason) { ! super(REPOSITORY_ID + " " + reason); } } --- 1,18 ---- package Components; ! public class IllegalState extends Components.UserException { ! private static final long serialVersionUID = -6931824844072445652L; ! ! private static final String DEFAULT_MESSAGE = "illegal state"; ! ! public IllegalState() { ! super(DEFAULT_MESSAGE); } ! ! public IllegalState( String _reason ) { ! super(_reason); } } Index: InvalidConnection.java =================================================================== RCS file: /cvsroot/ccmtools/java-environment/src/Components/InvalidConnection.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** InvalidConnection.java 10 Jan 2007 16:11:28 -0000 1.1 --- InvalidConnection.java 12 Apr 2007 15:21:42 -0000 1.2 *************** *** 1,18 **** package Components; ! public class InvalidConnection ! extends Components.UserException { ! private static final long serialVersionUID = -3095009263968067357L; ! private static final String REPOSITORY_ID = "IDL:Components/InvalidConnection:1.0"; ! ! public InvalidConnection() { ! super(REPOSITORY_ID); } - - public InvalidConnection(String reason) - { - super(REPOSITORY_ID + " " + reason); - } } --- 1,18 ---- package Components; ! public class InvalidConnection extends Components.UserException { ! private static final long serialVersionUID = -3095009263968067357L; ! ! private static final String DEFAULT_MESSAGE = "invalid connection"; ! ! public InvalidConnection() { ! super(DEFAULT_MESSAGE); ! } ! ! public InvalidConnection( String _reason ) ! { ! super(_reason); } } Index: InvalidConfiguration.java =================================================================== RCS file: /cvsroot/ccmtools/java-environment/src/Components/InvalidConfiguration.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** InvalidConfiguration.java 10 Jan 2007 16:11:28 -0000 1.1 --- InvalidConfiguration.java 12 Apr 2007 15:21:42 -0000 1.2 *************** *** 1,18 **** package Components; ! public class InvalidConfiguration ! extends Components.UserException { ! private static final long serialVersionUID = -294782326819622429L; ! private static final String REPOSITORY_ID = "IDL:Components/InvalidConfiguration:1.0"; ! ! public InvalidConfiguration() { ! super(REPOSITORY_ID); } ! ! public InvalidConfiguration(String reason) { ! super(REPOSITORY_ID + " " + reason); } } --- 1,18 ---- package Components; ! public class InvalidConfiguration extends Components.UserException { ! private static final long serialVersionUID = -294782326819622429L; ! ! private static final String DEFAULT_MESSAGE = "invalid configuration"; ! ! public InvalidConfiguration() { ! super(DEFAULT_MESSAGE); } ! ! public InvalidConfiguration( String reason ) { ! super(reason); } } Index: InvalidLocation.java =================================================================== RCS file: /cvsroot/ccmtools/java-environment/src/Components/InvalidLocation.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** InvalidLocation.java 10 Jan 2007 16:11:29 -0000 1.1 --- InvalidLocation.java 12 Apr 2007 15:21:42 -0000 1.2 *************** *** 1,18 **** package Components; ! public class InvalidLocation ! extends Components.UserException { ! private static final long serialVersionUID = 292325942395365465L; ! private static final String REPOSITORY_ID = "IDL:Components/InvalidLocation:1.0"; ! ! public InvalidLocation() { ! super(REPOSITORY_ID); } - - public InvalidLocation(String reason) - { - super(REPOSITORY_ID + " " + reason); - } } --- 1,18 ---- package Components; ! public class InvalidLocation extends Components.UserException { ! private static final long serialVersionUID = 292325942395365465L; ! ! private static final String DEFAULT_MESSAGE = "invalid location"; ! ! public InvalidLocation() { ! super(DEFAULT_MESSAGE); ! } ! ! public InvalidLocation( String _reason ) ! { ! super(_reason); } } Index: UserException.java =================================================================== RCS file: /cvsroot/ccmtools/java-environment/src/Components/UserException.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** UserException.java 10 Jan 2007 16:11:28 -0000 1.1 --- UserException.java 12 Apr 2007 15:21:42 -0000 1.2 *************** *** 1,18 **** package Components; ! public class UserException ! extends java.lang.Exception { ! private static final long serialVersionUID = -1127609876865983434L; ! private static final String REPOSITORY_ID = "IDL:Components/UserException:1.0"; ! ! public UserException() { ! super(REPOSITORY_ID); } ! ! public UserException(String reason) { ! super(reason); } } --- 1,34 ---- package Components; ! public class UserException extends java.lang.Exception { ! private static final long serialVersionUID = -1127609876865983434L; ! ! private static final String DEFAULT_MESSAGE = "ccmtools user exception"; ! ! public UserException() { ! super(DEFAULT_MESSAGE); } ! ! public UserException( String message ) { ! super(message); ! } ! ! public UserException( String message, Throwable cause ) ! { ! super(message, cause); ! } ! ! public UserException( Throwable cause ) ! { ! super(DEFAULT_MESSAGE, cause); ! } ! ! public String getRepoId() ! { ! String cls = this.getClass().getName(); ! return "IDL:ccmtools/" + cls + ":1.0"; } } Index: HomeNotFound.java =================================================================== RCS file: /cvsroot/ccmtools/java-environment/src/Components/HomeNotFound.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** HomeNotFound.java 10 Jan 2007 16:11:29 -0000 1.1 --- HomeNotFound.java 12 Apr 2007 15:21:42 -0000 1.2 *************** *** 1,18 **** package Components; ! public class HomeNotFound ! extends Components.UserException { ! private static final long serialVersionUID = -8114743147626972429L; ! private static final String REPOSITORY_ID = "IDL:Components/HomeNotFound:1.0"; ! ! public HomeNotFound() { ! super(REPOSITORY_ID); } ! ! public HomeNotFound(String reason) { ! super(REPOSITORY_ID + " " + reason); } } --- 1,18 ---- package Components; ! public class HomeNotFound extends Components.UserException { ! private static final long serialVersionUID = -8114743147626972429L; ! ! private static final String DEFAULT_MESSAGE = "home not found"; ! ! public HomeNotFound() { ! super(DEFAULT_MESSAGE); } ! ! public HomeNotFound( String _reason ) { ! super(_reason); } } Index: RemoveFailure.java =================================================================== RCS file: /cvsroot/ccmtools/java-environment/src/Components/RemoveFailure.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** RemoveFailure.java 10 Jan 2007 16:11:28 -0000 1.1 --- RemoveFailure.java 12 Apr 2007 15:21:42 -0000 1.2 *************** *** 1,18 **** package Components; ! public class RemoveFailure ! extends Components.UserException { ! private static final long serialVersionUID = 1044618169291791571L; ! private static final String REPOSITORY_ID = "IDL:Components/RemoveFailure:1.0"; ! ! public RemoveFailure() { ! super(REPOSITORY_ID); } ! ! public RemoveFailure(String reason) { ! super(REPOSITORY_ID + " " + reason); } } --- 1,18 ---- package Components; ! public class RemoveFailure extends Components.UserException { ! private static final long serialVersionUID = 1044618169291791571L; ! ! private static final String DEFAULT_MESSAGE = "remove failure"; ! ! public RemoveFailure() { ! super(DEFAULT_MESSAGE); } ! ! public RemoveFailure( String reason ) { ! super(reason); } } |