Coverage Summary for Class: ForbiddenOperationException (it.polimi.ingsw.Exceptions.Operation)
| Class | Class, % | Method, % | Line, % |
|---|---|---|---|
| ForbiddenOperationException | 0% (0/1) | 0% (0/1) | 0% (0/1) |
1 package it.polimi.ingsw.Exceptions.Operation; 2 3 /** 4 * Signals there was an error while attempting to carry out an operation. This is different from any {@link it.polimi.ingsw.Exceptions.Input.InputValidationException} 5 * in the sense that the operation is thought to be "generally allowed" under most normal circumstances, but some 6 * form of verification was required to prevent potential unrecoverable errors in the code. 7 */ 8 public class ForbiddenOperationException extends OperationException { 9 /** 10 * Creates an exception reporting a specific error and an identifier for the failed operation 11 * 12 * @param operationName the name of the operation in question 13 * @param additionalInfo a short description of the error 14 */ 15 public ForbiddenOperationException(String operationName, String additionalInfo) { 16 super(operationName, "could not be executed as it was forbidden." + 17 "\nAdditional INFO: " + additionalInfo); 18 } 19 }