brahmlower / cssef

Cyber Security Scoring Engine Framework
7 stars 3 forks source link

taskutil model errors #53

Open brahmlower opened 7 years ago

brahmlower commented 7 years ago

In one of the unit tests I mention an error should be raised from a ModelWrapper, which would be caught and handled by the CssefRPCEndpoint.__call__ method. In another test I said that an error should be caught and handled by the ModelWrapper, with the appropriate response being returned to the model_del/set/get function.

Before starting either of those todos, I need to figure how how errors raised within the ModelWrapper class will be handled: in the ModelWrapper, or by the CssefRPCEndpoint. The model_del/set/get function itself should not handle any errors.