You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

UnsupportedPointcutPrimitiveException.java 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /* *******************************************************************
  2. * Copyright (c) 2005 Contributors.
  3. * All rights reserved.
  4. * This program and the accompanying materials are made available
  5. * under the terms of the Eclipse Public License v1.0
  6. * which accompanies this distribution and is available at
  7. * http://eclipse.org/legal/epl-v10.html
  8. *
  9. * Contributors:
  10. * Adrian Colyer Initial implementation
  11. * ******************************************************************/
  12. package org.aspectj.weaver.tools;
  13. import org.aspectj.weaver.WeaverMessages;
  14. /**
  15. * @author colyer
  16. *
  17. */
  18. public class UnsupportedPointcutPrimitiveException extends RuntimeException {
  19. private static final long serialVersionUID = 3258689888517043251L;
  20. private PointcutPrimitive unsupportedPrimitive;
  21. private String pointcutExpression;
  22. public UnsupportedPointcutPrimitiveException(String pcExpression, PointcutPrimitive primitive) {
  23. super(WeaverMessages.format(WeaverMessages.UNSUPPORTED_POINTCUT_PRIMITIVE,pcExpression,primitive.getName()));
  24. this.pointcutExpression = pcExpression;
  25. this.unsupportedPrimitive = primitive;
  26. }
  27. /**
  28. * @return Returns the unsupportedPrimitive.
  29. */
  30. public PointcutPrimitive getUnsupportedPrimitive() {
  31. return unsupportedPrimitive;
  32. }
  33. public String getInvalidPointcutExpression() {
  34. return pointcutExpression;
  35. }
  36. }