public RouteMatrixEntryError getError() {
        return this.error;
    }
<p>
An error corresponding to the calculation of a route between the <code>DeparturePosition</code> and
<code>DestinationPosition</code>.
</p>

@return An error corresponding to the calculation of a route between the <code>DeparturePosition</code> and
        <code>DestinationPosition</code>.
aws-java-sdk-location/src/main/java/com/amazonaws/services/location/model/RouteMatrixEntry.java