src/main/java/seedu/insurancepal/logic/commands/ClaimCommand.java
/**
         * Returns the claim with the corresponding attributes
         */
Returns the claim with the corresponding attributes
Returns the claim with the corresponding attributes
public Claim build() throws CommandException {
            if (isEmpty()) {
                throw new CommandException(String.format(MESSAGE_CLAIM_REMOVE_FAILURE, getTitle()));
            }
            if (!isComplete()) {
                throw new CommandException(String.format(MESSAGE_CLAIM_EDIT_FAILURE, getTitle()));
            }
            return new Claim(title, description, status);
        }
public Claim build ( ) throws CommandException { if ( isEmpty ( ) ) { throw new CommandException ( String . format ( MESSAGE_CLAIM_REMOVE_FAILURE , getTitle ( ) ) ) ; } if ( ! isComplete ( ) ) { throw new CommandException ( String . format ( MESSAGE_CLAIM_EDIT_FAILURE , getTitle ( ) ) ) ; } return new Claim ( title , description , status ) ; }
Returns the claim with the corresponding attributes
Returns the claim with the corresponding attributes