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