FF-105: Get quote errors (#470)

* added exceptions

* another way

* added requested changes

* nano

* nano
This commit is contained in:
Артем 2019-08-01 19:17:29 +03:00 committed by GitHub
parent ae26a6cdcd
commit 5d47bde5f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -98,6 +98,21 @@ struct GetQuoteParams {
4: required Cash exchange_cash
}
union QuoteFailure {
1: LimitExceededFailure limit_exceeded
}
union LimitExceededFailure {
1: GeneralFailure value_above_max_limit
2: GeneralFailure value_below_min_limit
}
struct GeneralFailure {}
exception GetQuoteFailure {
1: required QuoteFailure failure
}
///
/**
@ -142,5 +157,6 @@ service Adapter {
2: Options opts
)
throws (
1: GetQuoteFailure ex1
)
}