presto-spi/src/main/java/io/prestosql/spi/StandardErrorCode.java/StandardErrorCode/toErrorCode
class StandardErrorCode:    @Override
    public ErrorCode toErrorCode()
    {
        return errorCode;
    }