Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix CouchException #75

@fugafree

Description

@fugafree

CouchException.toString prints

CouchException:   (MyFile.scala:45)

But if I catch it and wrap it like

case couchException: CouchException[_] =>
  new RuntimeException(s"CouchException with message:\n${couchException.content}", couchException)

The result will be:

RuntimeException: : CouchException with message:
Error(not_found,missing_named_view,404 ,Request(GET,http://localhost:5984/...),...)

The expected behaviour is to print the content of the CouchException.

By the way: the name CouchException is little bit deceptive because it's not an Exception, it's a Throwable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions