presto-main/src/main/java/io/prestosql/dispatcher/FailedDispatchQuery.java/FailedDispatchQuery/getErrorCode
class FailedDispatchQuery:    @Override
    public Optional<ErrorCode> getErrorCode()
    {
        return Optional.ofNullable(basicQueryInfo.getErrorCode());
    }