|
@@ -102,7 +102,7 @@ class _LeCrud(object):
|
102
|
102
|
# @param complete bool : if True expect that datas provide values for all non internal fields
|
103
|
103
|
# @param allow_internal bool : if True don't raise an error if a field is internal
|
104
|
104
|
# @return Checked datas
|
105
|
|
- # @throw LeObjectError if errors reported during check
|
|
105
|
+ # @throw LeApiDataCheckError if errors reported during check
|
106
|
106
|
@classmethod
|
107
|
107
|
def check_datas_value(cls, datas, complete = False, allow_internal = True):
|
108
|
108
|
err_l = [] #Stores errors
|
|
@@ -133,8 +133,8 @@ class _LeCrud(object):
|
133
|
133
|
if err:
|
134
|
134
|
err_l.append(err)
|
135
|
135
|
|
136
|
|
- if len(missing_data) > 0:
|
137
|
|
- raise LeObjectError("The argument complete was True but some fields are missing : %s" % (missing_data))
|
|
136
|
+ if len(err_l) > 0:
|
|
137
|
+ raise LeApiDataCheckError("The argument complete was %s but some fields are missing : %s" % (complete, err_l))
|
138
|
138
|
return checked_datas
|
139
|
139
|
|
140
|
140
|
## @brief Retrieve a collection of lodel editorial components
|