Skip to content

Обработка исключений #32

@scrinoman

Description

@scrinoman

Нужно как-то придумать реализацию или убрать из строгих правил кейс, когда ловятся все исключения и обрабатываются, не проглатываясь
http://wiki.omega-r.club/dev-android-code#rec226454364

@SuppressLint("OMEGA_NOT_IGNORE_EXCEPTIONS")
    override suspend fun addNewPlace(accountNumber: String, name: String) {
        try {
            val place = remoteDataSource.createPlace(accountNumber, name)
            localDataSource.createPlace(place)
        } catch (ex: SQLiteConstraintException) {
            throw DoorphonesException.NameExists
        } catch (ex: Exception) {
            errorHandler.handleThrowable(ex)
        }
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions