MCPcopy Index your code
hub / github.com/bugy/script-server / InvalidValueException

Class InvalidValueException

src/model/model_helper.py:271–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

269
270
271class InvalidValueException(Exception):
272 def __init__(self, param_name, validation_error) -> None:
273 super().__init__(validation_error)
274 self.param_name = param_name
275
276 def get_user_message(self):
277 return 'Invalid value for "' + self.param_name + '": ' + str(self)
278
279
280class InvalidValueTypeException(Exception):

Callers 7

set_param_valueMethod · 0.90
set_all_param_valuesMethod · 0.90
list_filesMethod · 0.90
_read_ui_separatorFunction · 0.90
read_int_from_configFunction · 0.85
read_str_from_configFunction · 0.85
read_enumFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected