|
| 1 | +/* |
| 2 | + * Copyright (c) 2020 Oracle Corporation and/or its affiliates. |
| 3 | + * Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. |
| 4 | + */ |
| 5 | +package oracle.weblogic.deploy.compare; |
| 6 | + |
| 7 | +import oracle.weblogic.deploy.exception.BundleAwareException; |
| 8 | +import oracle.weblogic.deploy.exception.ExceptionHelper; |
| 9 | + |
| 10 | +/** |
| 11 | + * The exception used by the validation-related components. |
| 12 | + */ |
| 13 | +public class CompareException extends BundleAwareException { |
| 14 | + private static final long serialVersionUID = 1L; |
| 15 | + |
| 16 | + /** |
| 17 | + * Constructs a default exception. |
| 18 | + */ |
| 19 | + public CompareException() { |
| 20 | + // default constructor |
| 21 | + } |
| 22 | + |
| 23 | + /** |
| 24 | + * Constructs a new exception with the specified message id. |
| 25 | + * |
| 26 | + * @param messageID the message ID |
| 27 | + */ |
| 28 | + public CompareException(String messageID) { |
| 29 | + super(messageID); |
| 30 | + } |
| 31 | + |
| 32 | + /** |
| 33 | + * Constructs a new exception with the specified message id and parameters. |
| 34 | + * |
| 35 | + * @param messageID the message ID |
| 36 | + * @param params the parameters to use to fill in the message tokens |
| 37 | + */ |
| 38 | + public CompareException(String messageID, Object... params) { |
| 39 | + super(messageID, params); |
| 40 | + } |
| 41 | + |
| 42 | + /** |
| 43 | + * Constructs a new exception with the specified message id and cause. |
| 44 | + * |
| 45 | + * @param messageID the message ID |
| 46 | + * @param cause the exception that triggered the creation of this exception |
| 47 | + */ |
| 48 | + public CompareException(String messageID, Throwable cause) { |
| 49 | + super(messageID, cause); |
| 50 | + } |
| 51 | + |
| 52 | + /** |
| 53 | + * Constructs a new exception with passed message id, cause, and parameters. |
| 54 | + * |
| 55 | + * @param messageID the message ID |
| 56 | + * @param cause the exception that triggered the creation of this exception |
| 57 | + * @param params the parameters to use to fill in the message tokens |
| 58 | + */ |
| 59 | + public CompareException(String messageID, Throwable cause, Object... params) { |
| 60 | + super(messageID, cause, params); |
| 61 | + } |
| 62 | + |
| 63 | + /** |
| 64 | + * Constructs a new exception with the specified cause. |
| 65 | + * |
| 66 | + * @param cause the exception that triggered the creation of this exception |
| 67 | + */ |
| 68 | + public CompareException(Throwable cause) { |
| 69 | + super(cause); |
| 70 | + } |
| 71 | + |
| 72 | + /** |
| 73 | + * {@inheritDoc} |
| 74 | + */ |
| 75 | + @Override |
| 76 | + public String getBundleName() { |
| 77 | + return ExceptionHelper.getResourceBundleName(); |
| 78 | + } |
| 79 | +} |
0 commit comments