diff options
author | Marcin Chrzanowski <marcin.j.chrzanowski@gmail.com> | 2019-10-21 21:45:57 +0200 |
---|---|---|
committer | Marcin Chrzanowski <marcin.j.chrzanowski@gmail.com> | 2019-10-21 21:45:57 +0200 |
commit | a0c4b252e5867219871b5c6df10219d916e29bff (patch) | |
tree | 08cc82ec20db1c68ec6002d965209c5168fad7a9 /src/pl/edu/mimuw/cloudatlas/model/UnsupportedValueOperationException.java | |
parent | 38847dbb8809a8214a911b120b6b11ee4d7f1399 (diff) |
Tabs to spaces
Diffstat (limited to 'src/pl/edu/mimuw/cloudatlas/model/UnsupportedValueOperationException.java')
-rw-r--r-- | src/pl/edu/mimuw/cloudatlas/model/UnsupportedValueOperationException.java | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/src/pl/edu/mimuw/cloudatlas/model/UnsupportedValueOperationException.java b/src/pl/edu/mimuw/cloudatlas/model/UnsupportedValueOperationException.java index e292265..0cab2fb 100644 --- a/src/pl/edu/mimuw/cloudatlas/model/UnsupportedValueOperationException.java +++ b/src/pl/edu/mimuw/cloudatlas/model/UnsupportedValueOperationException.java @@ -28,42 +28,42 @@ import pl.edu.mimuw.cloudatlas.model.Value.Operation; /** * An exception caused by calling an unsupported unary operation on value. - * + * * @see IncompatibleTypesException * @see UnsupportedConversionException */ @SuppressWarnings("serial") public class UnsupportedValueOperationException extends UnsupportedOperationException { - private final Type left; - private final Operation operation; - - /** - * Creates a new object representing this exception. - * - * @param left type of a value that was an argument of an operation that caused this exception - * @param operation the operation that caused this exception - */ - protected UnsupportedValueOperationException(Type left, Operation operation) { - super("Type: " + left + " does not provide operation " + operation + "."); - this.left = left; - this.operation = operation; - } - - /** - * Gets a type of value that was an argument to an operation that caused this exception. - * - * @return first argument of the operation - */ - public Type getLeft() { - return left; - } - - /** - * Gets an operation that caused this exception. - * - * @return the operation - */ - public Operation getOperation() { - return operation; - } + private final Type left; + private final Operation operation; + + /** + * Creates a new object representing this exception. + * + * @param left type of a value that was an argument of an operation that caused this exception + * @param operation the operation that caused this exception + */ + protected UnsupportedValueOperationException(Type left, Operation operation) { + super("Type: " + left + " does not provide operation " + operation + "."); + this.left = left; + this.operation = operation; + } + + /** + * Gets a type of value that was an argument to an operation that caused this exception. + * + * @return first argument of the operation + */ + public Type getLeft() { + return left; + } + + /** + * Gets an operation that caused this exception. + * + * @return the operation + */ + public Operation getOperation() { + return operation; + } } |