Home
last modified time | relevance | path

Searched full:raise (Results 1 – 25 of 1268) sorted by relevance

12345678910>>...51

/openbmc/qemu/scripts/qapi/
H A Dexpr.py62 :raise QAPISemError: When ``name`` fails validation.
65 raise QAPISemError(info, "%s requires a string name" % source)
83 :raise QAPISemError: When ``name`` fails validation.
90 raise QAPISemError(info, "%s has an invalid name" % source)
106 :raise QAPISemError: When ``name`` fails validation.
110 raise QAPISemError(
130 :raise QAPISemError: When ``name`` fails validation.
135 raise QAPISemError(
150 :raise QAPISemError: When ``name`` fails validation.
154 raise QAPISemError(info, "name of %s must use CamelCase" % source)
[all …]
H A Dparser.py89 :raise OSError: For problems reading the root schema document.
90 :raise QAPIError: For errors in the schema source.
124 # May raise OSError; allow the caller to handle it.
144 raise QAPISemError(
150 raise QAPISemError(info, "invalid 'include' directive")
153 raise QAPISemError(info,
166 raise QAPISemError(info, "invalid 'pragma' directive")
169 raise QAPISemError(
175 raise QAPISemError(
189 raise QAPISemError(
[all …]
/openbmc/qemu/python/qemu/qmp/
H A Dqmp_client.py241 :raise GreetingError: When the greeting is not understood.
242 :raise NegotiationError: If the negotiation fails.
243 :raise EOFError: When the server unexpectedly hangs up.
244 :raise OSError: For underlying stream errors.
261 :raise GreetingError: When the greeting is not understood.
262 :raise EOFError: When the server unexpectedly hangs up.
263 :raise OSError: For underlying stream errors.
276 raise GreetingError(emsg, err) from err
282 raise
289 :raise NegotiationError: When negotiation fails.
[all …]
H A Dmodels.py26 :raise KeyError: If any required fields are absent.
27 :raise TypeError: If any required fields have the wrong type.
34 raise KeyError(f"'{self._name}' object requires '{key}' member")
39 raise TypeError(
60 :raise KeyError: If any required fields are absent.
61 :raise TypeError: If any required fields have the wrong type.
88 :raise KeyError: If any required fields are absent.
89 :raise TypeError: If any required fields have the wrong type.
110 :raise KeyError: If any required fields are absent.
111 :raise TypeError: If any required fields have the wrong type.
[all …]
H A Dprotocol.py126 :raise StateError: When the required `Runstate` is not met.
155 raise StateError(emsg, proto.runstate, required_state)
287 :raise StateError: When the `Runstate` is not `IDLE`.
288 :raise ConnectError:
317 :raise StateError: When the `Runstate` is not `IDLE`.
318 :raise ConnectError:
337 :raise StateError: When the `Runstate` is not `CONNECTING`.
338 :raise QMPError: When `start_server()` was not called yet.
339 :raise ConnectError:
348 raise QMPError("Cannot call accept() before start_server().")
[all …]
/openbmc/u-boot/test/py/tests/
H A Dtest_efi_selftest.py21 raise Exception('Failures occurred during the EFI selftest')
25 raise Exception('Reset failed during the EFI selftest')
39 raise Exception('Reset failed in \'device tree\' test')
51 raise Exception('Reset failed in \'watchdog reboot\' test')
67 raise Exception('No prompt for \'text input\' test')
76 raise Exception('EOT failed in \'text input\' test')
84 raise Exception('BS failed in \'text input\' test')
92 raise Exception('BS failed in \'text input\' test')
100 raise Exception('\'a\' failed in \'text input\' test')
108 raise Exception('UP failed in \'text input\' test')
[all …]
/openbmc/openbmc/poky/scripts/lib/wic/
H A Dksparser.py52 raise ArgumentError(None, message)
68 raise ArgumentTypeError("Invalid size: %r" % arg)
85 raise ArgumentTypeError("Invalid size: %r" % arg)
96 raise ArgumentTypeError("Invalid value: %r" % arg)
99 raise ArgumentTypeError("Overhead factor should be > 1.0" % arg)
111 raise ArgumentTypeError("file not found: %s" % arg)
125 raise ArgumentTypeError(error)
128 raise ArgumentTypeError(error)
177 # ----extra-space and --overhead-factor should also raise a parser
224 raise KickStartError('%s:%d: %s' % \
[all …]
/openbmc/qemu/tests/tcg/i386/
H A Dtest-avx.py74 raise Exception("bad reg_w %d" % w)
90 raise Exception()
98 raise Exception("Bad /m width: %s" % w)
112 raise Exception("Bad mem width: %s" % mw)
128 raise Exception("Bad vsib width: %s" % w)
143 raise Exception("Unknown immediate")
158 raise Exception("Bad r/w width: %s" % w)
160 raise Exception("Bad r/w width: %s" % w)
175 raise Exception("Bad mem width: %s" % w)
188 raise Exception("Expected /m: %s", arg)
[all …]
H A Dtest-mmx.py41 raise Exception("bad reg_w %d" % w)
53 raise Exception()
62 raise Exception("Bad /m width: %s" % w)
82 raise Exception("Unknown immediate")
97 raise Exception("Bad r/w width: %s" % w)
99 raise Exception("Bad r/w width: %s" % w)
114 raise Exception("Bad mem width: %s" % w)
127 raise Exception("Expected /m: %s", arg)
137 raise Exception("Expected /m: %s", arg)
149 raise SkipInstruction
[all …]
/openbmc/rest-dbus/
H A Drest-dbus28 raise NotImplemented()
61 raise DBusRestException("Not Found", 404)
107 raise DBusRestException("Object Not Found", 404)
148 raise DBusRestException("Interface Not Found", 404)
211 raise DBusRestException("Property Not Found", 404)
230 raise DBusRestException("Bus Not Found", 404)
263 raise DBusRestException("Not Found", 404)
280 raise DBusRestException("Not Found", 404)
307 raise DBusRestException("Not Found", 404)
311 raise DBusRestException("Not Found", 404)
[all …]
/openbmc/openbmc/poky/bitbake/lib/bb/compress/
H A D_pipecompress.py44 raise ValueError("Invalid mode: %r" % (mode,))
47 raise ValueError("Argument 'encoding' not supported in binary mode")
49 raise ValueError("Argument 'errors' not supported in binary mode")
51 raise ValueError("Argument 'newline' not supported in binary mode")
59 raise TypeError("filename must be a str or bytes object, or a file")
95 raise ValueError("Invalid mode: {!r}".format(mode))
105 raise ValueError("Invalid mode %r" % mode)
139 raise CompressionError("Process died with %d" % returncode)
176 raise OSError(
188 raise OSError(
/openbmc/openbmc/poky/bitbake/lib/bb/pysh/
H A Dpyshlex.py143 Otherwise, raise NeedMore.
170 raise NeedMore()
174 raise NeedMore()
181 raise NeedMore()
197 raise NeedMore()
200 raise NeedMore()
212 raise NeedMore()
219 raise NeedMore()
230 raise NeedMore()
234 raise NeedMore()
[all …]
/openbmc/linux/tools/crypto/ccp/
H A Ddbc.py30 raise OSError(code, os.strerror(code))
35 raise ValueError("Device required")
45 raise ValueError("Signature required")
47 raise ValueError("UID required")
56 raise ValueError("Signature required")
58 raise ValueError("Expected message tuple")
/openbmc/openbmc/poky/meta/lib/oe/
H A Dterminal.py42 raise UnsupportedTerminal(self.name)
44 raise
57 raise UnsupportedTerminal(self.name)
134 raise UnsupportedTerminal('tmux is not installed')
137 raise UnsupportedTerminal('tmux is not running')
140 raise UnsupportedTerminal('tmux pane too small or tmux < 1.9 version is being used')
152 raise UnsupportedTerminal('tmux is not installed')
155 raise UnsupportedTerminal('tmux is not running')
166 raise UnsupportedTerminal('tmux is not installed')
200 raise UnsupportedTerminal('OE_TERMINAL_CUSTOMCMD not set')
[all …]
/openbmc/u-boot/scripts/dtc/pylibfdt/
H A Dlibfdt.i_shipped81 """Raise an error if the return value is -ve
87 quiet: Errors to ignore (empty to raise on all errors)
97 raise FdtException(val)
101 """Raise an error if the return value is NULL
108 quiet: Errors to ignore (empty to raise on all errors)
121 raise FdtException(val)
159 quiet: Errors to ignore (empty to raise on all errors)
176 quiet: Errors to ignore (empty to raise on all errors)
191 quiet: Errors to ignore (empty to raise on all errors)
306 quiet: Errors to ignore (empty to raise on all errors)
[all …]
/openbmc/openbmc-test-automation/lib/
H A Dpel_utils.py107 raise PeltoolException(
115 Verify that no PEL exists in BMC. Raise an exception if it does.
125 raise PeltoolException("PEL data present in BMC")
127 raise PeltoolException(
191 raise PeltoolException(
196 raise PeltoolException(
227 raise PeltoolException(
231 raise PeltoolException(
253 raise PeltoolException(
283 raise PeltoolException("Unexpected SRC found.")
[all …]
/openbmc/linux/scripts/gdb/linux/
H A Drbtree.py17 raise gdb.GdbError("Must be struct rb_root not {}".format(root.type))
33 raise gdb.GdbError("Must be struct rb_root not {}".format(root.type))
58 raise gdb.GdbError("Must be struct rb_node not {}".format(node.type))
81 raise gdb.GdbError("Must be struct rb_node not {}".format(node.type))
112 raise gdb.GdbError("No entry in tree")
132 raise gdb.GdbError("No entry in tree")
152 raise gdb.GdbError("No entry in tree")
172 raise gdb.GdbError("No entry in tree")
/openbmc/u-boot/tools/binman/
H A Dentry.py115raise ValueError("Unknown entry type '%s' in node '%s' (expected etype/%s.py, error '%s'" %
150 self.Raise("Please use 'offset' instead of 'pos'")
155 raise ValueError("Node '%s': Alignment %s must be a power of two" %
161 raise ValueError("Node '%s': Alignment size %s must be a power "
194 self.Raise(err)
250 self.Raise('Cannot update entry size from %d to %d' %
284 self.Raise('No offset set with offset-unset: should another '
302 self.Raise("Entry contents size is %#x (%d) but entry size is "
308 self.Raise("Size %#x (%d) does not match align-size %#x (%d)" %
311 self.Raise("Offset %#x (%d) does not match align %#x (%d)" %
[all …]
/openbmc/openbmc/poky/bitbake/lib/layerindexlib/
H A D__init__.py53 raise LayerIndexException("Must be initialized with bb.data.")
73 raise TypeError("Can not add different types.")
116 raise LayerIndexUrlError(url, "empty url")
146 raise LayerIndexFetchError(url, e)
149 raise LayerIndexFetchError(url, e)
164 raise LayerIndexFetchError(url, "%s: %s" % (e, reason))
167raise LayerIndexFetchError(url, "Unexpected exception: [Error %s] %s" % (error, reason))
169 raise LayerIndexFetchError(url, "Unable to fetch OSError exception: %s" % e)
210 raise LayerIndexException("No LayerIndex Plugins available")
227 raise LayerIndexException("No plugins support %s" % indexURI)
[all …]
/openbmc/sdbusplus/tools/sdbusplus/
H A Dpath.py25 raise ValueError("Invalid empty path.")
27 raise ValueError(f"Paths must start with /: {self.value}")
29 raise ValueError(f"Segments cannot start with /: {self.value}")
35 raise ValueError(
39 raise ValueError(
/openbmc/openbmc/poky/bitbake/lib/bb/asyncrpc/
H A Dconnection.py37 raise TypeError("Type %s not serializeable" % type(obj))
86 raise ConnectionError("Timed out waiting for data")
89 raise ConnectionClosedError("Connection closed")
94 raise ConnectionError("Bad message %r" % (line))
127 raise ConnectionClosedError("Connection closed")
139 raise ConnectionError("Timed out waiting for data")
141 raise ConnectionClosedError("Connection closed")
/openbmc/openbmc/poky/meta/lib/oeqa/core/
H A Dloader.py24 # For our purposes, it is better to raise the exceptions in the loading
31 exec("""def _make_failed_test(%s): raise exception""" % ', '.join(_failed_test_args))
38 raise ImportError("Duplicated %s module found in %s" % (module, path))
65raise OEQATestNotFound("All selected modules were skipped, this would trigger selftest with all te…
89 raise TypeError('module_paths must be a str or a list of str')
114 raise Exception("Decorator %s isn't registered" \
225 raise TypeError("Test cases should not be derived from TestSuite." \
229 raise TypeError("Test %s is not derived from %s" % \
254 test is found, raise an exception when not found.
270 raise OEQATestNotFound("Not found %s in loaded test cases" % \
[all …]
/openbmc/qemu/scripts/tracetool/
H A D__init__.py100 raise ValueError("Argument type '%s' is not allowed. "
140 raise ValueError("Empty argument (did you forget to use 'void'?)")
257 raise ValueError("Event '%s' has more than maximum permitted "
267 raise ValueError("Unknown properties: %s"
299 raise ValueError("Event format '%m' is forbidden, pass the error "
302 raise ValueError("Event format must not end with a newline "
305 raise ValueError("Event format must not use new line character")
361 raise ValueError("%s does not end with a new line" % fname)
372 raise
434 raise TracetoolError("format not set")
[all …]
/openbmc/openbmc/poky/scripts/
H A Dwic112 raise WicError("Can't build rootfs as bitbake is not in the $PATH")
123 raise WicError("The following build artifacts are not specified: %s" %
135 raise WicError("Couldn't verify build environment, exiting")
158 raise WicError("Image name is not specified, exiting. "
171 raise WicError("Unable to find the location of the native tools sysroot")
178 raise WicError("No image named %s found, exiting. (Use 'wic list images' "
190 raise WicError("--rootfs-dir (-r) not found, exiting")
192 raise WicError("--bootimg-dir (-b) not found, exiting")
194 raise WicError("--kernel-dir (-k) not found, exiting")
196 raise WicError("--native-sysroot (-n) not found, exiting")
[all …]
/openbmc/openbmc/poky/scripts/esdk-tools/
H A Dwic112 raise WicError("Can't build rootfs as bitbake is not in the $PATH")
123 raise WicError("The following build artifacts are not specified: %s" %
135 raise WicError("Couldn't verify build environment, exiting")
158 raise WicError("Image name is not specified, exiting. "
171 raise WicError("Unable to find the location of the native tools sysroot")
178 raise WicError("No image named %s found, exiting. (Use 'wic list images' "
190 raise WicError("--rootfs-dir (-r) not found, exiting")
192 raise WicError("--bootimg-dir (-b) not found, exiting")
194 raise WicError("--kernel-dir (-k) not found, exiting")
196 raise WicError("--native-sysroot (-n) not found, exiting")
[all …]

12345678910>>...51