mirror of https://github.com/kivy/pyjnius.git
improve error message for constructor not matching arguments
This commit is contained in:
parent
653f8728d2
commit
eab00790bc
|
@ -338,8 +338,10 @@ cdef class JavaClass(object):
|
|||
)
|
||||
if not scores:
|
||||
raise JavaException(
|
||||
'No constructor matching your arguments, available: '
|
||||
'{}'.format(found_definitions)
|
||||
'No constructor matching your arguments, requested: {}, available: {}'.format(
|
||||
args,
|
||||
found_definitions
|
||||
)
|
||||
)
|
||||
scores.sort()
|
||||
score, definition, d_ret, d_args, args_ = scores[-1]
|
||||
|
|
Loading…
Reference in New Issue