mirror of
https://github.com/valitydev/damsel.git
synced 2024-11-06 09:45:21 +00:00
FF-105: Get quote errors (#470)
* added exceptions * another way * added requested changes * nano * nano
This commit is contained in:
parent
ae26a6cdcd
commit
5d47bde5f3
@ -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
|
||||
)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user