void checkDataReadOnly() {

        if (dataSource.length() == 0) {
            throw Error.error(ErrorCode.TEXT_TABLE_UNKNOWN_DATA_SOURCE);
        }

        if (isReadOnly) {
            throw Error.error(ErrorCode.DATA_IS_READONLY);
        }
    }
void checkDataReadOnly ( ) { if ( dataSource . length ( ) == 0 ) { throw Error . error ( ErrorCode . TEXT_TABLE_UNKNOWN_DATA_SOURCE ) ; } if ( isReadOnly ) { throw Error . error ( ErrorCode . DATA_IS_READONLY ) ; } }
Used by INSERT, DELETE, UPDATE operations. This class will return
a more appropriate message when there is no data source.