PageRenderTime 8ms queryFilters 1ms Sphinxql 288ms app.CodeModel.GetByIds 743ms findMatchingLines 21ms GetByIds 764ms meta 0ms repositoryFilters 13ms languageFilters 18ms sourceFilters 7ms

5,833,776 results for 'ERROR repo:dmsh/ocaml-xlib' (8 ms)

Source

Language

Repository

nova-log-error.po git://github.com/openstack/nova.git | Portable Object | 851 lines
141#, python-format
142msgid "Error from libvirt during destroy. Code=%(errcode)s Error=%(e)s"
143msgstr "Errore di libvirt durante la distruzione. Code=%(errcode)s Error=%(e)s"
153msgstr ""
154"Errore di libvirt durante l'annullamento del filtro. Code=%(errcode)s Error="
155"%(e)s"
169msgid ""
170"Error occurred during volume_snapshot_create, sending error status to Cinder."
171msgstr ""
175msgid ""
176"Error occurred during volume_snapshot_delete, sending error status to Cinder."
177msgstr ""
397msgid "Failed to remove %(base_file)s, error was %(error)s"
398msgstr "Impossibile rimuovere %(base_file)s, l'errore era %(error)s"
399
2014-01-30-exception-error.md git://github.com/alexyoung/dailyjs.git | Markdown | 107 lines
14
15I like to define a lot of objects that inherit from `Error`.  I find it helps me to track down issues -- post-mortem -- but also to clearly handle expected errors.  Sometimes writing error handling code feels like a chore, but it shouldn't be an afterthought.  Well-designed and well-tested errors will help you maintain projects, but also help users figure out what to do when things go wrong.
16
46
47The assertions check that the expected property was set (`message`), and `error` is an instance of `NotFound`, `Error`, but _not_ `RangeError`.
48
91
92If you're using an API like this, you'll probably use something like `if (err) return handleError(err)` at the top of your callback.  You can also use `if (err instanceof SpecificError)` to add your own context specific error handling code.
93
97
98Once you start subclassing `Error` and adding your own properties, you can cause new problems by breaking the [SOLID](http://en.wikipedia.org/wiki/SOLID_%28object-oriented_design%29) principles.  To keep your errors clean, ensure an error class only has one responsibility -- don't make Swiss Army knife error objects, or trigger complex behaviours inside their constructors.
99
105
106I create a lot of `Error` classes in my projects, but I rarely use `throw` and `catch`.  You should set useful properties in error objects, but use such properties consistently.  And, don't cross the streams: HTTP errors have no place in your database code.  Or for browser developers, Ajax errors have a place in code that talks to the server, but not code that processes Mustache templates.
107
Error.html https://bitbucket.org/pavelvasev/ride | HTML | 588 lines
87      <p>
88<a href="Error.html">Error</a> data.
89</p>
257          <td class="context-item-desc">
258error code: system error
259
270          <td class="context-item-desc">
271error code: miscellaneous error
272
348<ul>
349<li><strong>@param <var>right</var></strong> an error object or an error code.
350
381<ul>
382<li><strong>@param <var>right</var></strong> an error object or an error code.
383
Error.cs https://bitbucket.org/Djidja/nroles | C# | 285 lines
9  /// <summary>
10  /// Represents an error message.
11  /// </summary>
93      /// <summary>
94      /// Occurs when PEVerify detects error in the generated assembly.
95      /// This could mean that the assembly is unverifiable (as when it has unsafe code),
144
145    private Error(Code number, string text) : base(MessageType.Error, (int)number, text) { }
146    private Error(Code number, string text, params object[] parameters) :
226    }
227    internal static Error PEVerifyError(object description) {
228      return new Error(
237    }
238    internal static Error ErrorFromWarnings() {
239      return new Error(
error.py https://bitbucket.org/iparszyk/pyfiscalconnector | Python | 337 lines
240
241def _parseError(error, errorNamespace):
242    """
246    @type error: L{domish.Element}
247    @param errorNamespace: The namespace of the elements that hold the error
248                           condition and text.
287    """
288    error = _parseError(element, NS_XMPP_STREAMS)
289
289
290    exception = StreamError(error['condition'],
291                            error['text'],
314            type = element.getAttribute('type')
315            error = _parseError(element, NS_XMPP_STANZAS)
316            condition = error['condition']
Error.h https://bitbucket.org/0x7CFE/swarm | C++ Header | 130 lines
8
9  /** Functions in BWAPI may set an error code. To retrieve the error code, call Game::getLastError. */
10  class Error : public Type
15
16    /** Returns the name of the error. For example Errors::Insufficient_Minerals?.toString() will return a
17     * std::string object containing "Insufficient Minerals". */
23    /** Given the name of an error, this function will return the error code. For example:
24     * Errors::getError("Unbuildable Location") will return Errors::Unbuildable_Location?. */
25    Error getError(std::string name);
27    /** The set of all the error codes. */
28    const std::set<Error>& allErrors();
29
64    /** Returned if you try to research something that is already being researched. */
65    extern const Error Currently_Researching;
66
Error.js https://bitbucket.org/arches/arches | JavaScript | 252 lines
14*/
15describe("Ext.Error", function() { 
16    var global;
40
41    describe("raising an error via Ext.Error.raise", function() {
42
46                try {
47                    Ext.Error.raise('foo');
48                }
86        
87            it("should not throw an error if handled by Ext.Error.handle", function() {
88                spyOn(Ext.global.console, 'warn');
149        
150            it("should not throw an error if handled by Ext.Error.handle", function() {
151                spyOn(Ext.global.console, 'warn');
error-model.h https://bitbucket.org/klenkovic/ns-3-dev-logging-fixes | C++ Header | 418 lines
75 * \ingroup network
76 * \defgroup errormodel Error Model
77 */
111 *
112 * Four practical error models, a RateErrorModel, a BurstErrorModel, 
113 * a ListErrorModel, and a ReceiveListErrorModel, are currently implemented. 
172 */
173class RateErrorModel : public ErrorModel
174{
333 * cause subsequent packet uids to change.  For instance, suppose one wants 
334 * to error packets 11 and 17 on a given device.  It may be that erroring
335 * packet 11 will cause the subsequent uid stream to change and 17 may no
343 */
344class ListErrorModel : public ErrorModel
345{
error.k https://bitbucket.org/qyqx/klisp | Unknown | 73 lines
7;;
8($check-error (error "test"))
9
9
10;; XXX error-object? error-object-message error-object-irritants
11;;
34
35  ($check-error (error-object-message))
36  ($check-error (error-object-message e1 e2))
36  ($check-error (error-object-message e1 e2))
37  ($check-error (error-object-message "not an error object"))
38
48  ($check-error (error-object-irritants e1 e2))
49  ($check-error (error-object-irritants "not an error object")))
50
error.h https://github.com/megous/spkg.git | C Header | 99 lines
22#define E_OK      0 /**< all ok */
23#define E_ERROR   1 /**< nonfatal error */
24#define E_BADARG  2 /**< invalid function arguments */
27
28#define E_PASS    (-1) /**< leave previous error code (useful for longjmp error handling) */
29
47 *
48 * @return Error string on error, 0 otherwise
49 */
57
58/** Add error to the error object.
59 * 
62 * @param function Error function (in which function it occured)
63 * @param errnum Error number. (error type)
64 * @param errfmt Just like in printf.
Error.class.php https://github.com/neymanna/fusionforge.git | PHP | 217 lines
74	 */
75	function setError($string, $code=ERROR__UNCLASSIFIED_ERROR) {
76		$this->error_state=true;
87		$this->error_state=false;
88		$this->error_code=ERROR__NO_ERROR;
89		$this->error_message='';
125	function setPermissionDeniedError(){
126		$this->setError(_('Permission denied.'), ERROR__PERMISSION_DENIED_ERROR);
127	}
162	function setOnUpdateError($result=""){
163		$this->setError(sprintf(_('Error On Update:'), $result), ERROR__ON_UPDATE_ERROR);	
164	}
179	function setGroupIdError(){
180		$this->setError(_('Group_id in db result does not match Group Object'), ERROR__GROUPID_ERROR);
181		
error.h https://github.com/kyeh/dormhost.git | C Header | 755 lines
381    DatabaseCreateError(const std::string &msg_, const std::string &context_, const char * error_string_)
382	: DatabaseError(msg_, context_, "DatabaseCreateError", error_string_) {}
383    /** General purpose constructor which allows setting errno. */
411    DatabaseLockError(const std::string &msg_, const std::string &context_, const char * error_string_)
412	: DatabaseError(msg_, context_, "DatabaseLockError", error_string_) {}
413    /** General purpose constructor which allows setting errno. */
446    DatabaseModifiedError(const std::string &msg_, const std::string &context_, const char * error_string_)
447	: DatabaseError(msg_, context_, "DatabaseModifiedError", error_string_) {}
448    /** General purpose constructor which allows setting errno. */
476    DatabaseOpeningError(const std::string &msg_, const std::string &context_, const char * error_string_)
477	: DatabaseError(msg_, context_, "DatabaseOpeningError", error_string_) {}
478    /** General purpose constructor which allows setting errno. */
670    NetworkTimeoutError(const std::string &msg_, const std::string &context_, const char * error_string_)
671	: NetworkError(msg_, context_, "NetworkTimeoutError", error_string_) {}
672    /** General purpose constructor which allows setting errno. */
error-list.factor https://github.com/Keyholder/factor.git | Unknown | 206 lines
34visible-errors source-file error
35error-toggle source-file-table error-table error-display ;
36
105
106: <error-table-model> ( error-list -- model )
107    [ model>> ] [ source-file>> ] bi
155    vertical error-list-gadget new-track
156        <error-toggle> [ >>error-toggle ] [ >>visible-errors ] bi*
157        dup visible-errors>> model <error-model> >>model 
167        error-list source-file-table>> <scroller> "Source files" <labeled-gadget> 1/4 track-add
168        error-list error-table>> <scroller> "Errors" <labeled-gadget> 1/2 track-add
169        error-list error-display>> "Details" <labeled-gadget> 1/4 track-add
198: error-list-window ( -- )
199    <error-list-model> <error-list-gadget> "Errors" open-status-window ;
200
error-handling.sh https://github.com/wwwjscom/Segments-Tester.git | Shell | 210 lines
38if (-z difference) then
39    echo "Status: OK\!\! Output error message matches target error message (as provided in $TARGETFILE)"
40else
92if (-z difference) then
93    echo "Status: OK\!\! Output error message matches target error message (as provided in $TARGETFILE)"
94else
187# compare the error output with the required output
188diff error.out $TARGETERRORFILE > difference
189if (-z difference) then
189if (-z difference) then
190    echo "Status: OK\!\! Output error message matches target error message (as provided in $TARGETERRORFILE)"
191else
191else
192    echo "Status: ERROR\!\! Following differences exist between error.out and $TARGETERRORFILE :"
193    cat difference
error-handling.sh https://github.com/wwwjscom/Segments-Tester.git | Shell | 215 lines
94if (-z difference) then
95    echo "Status: OK\!\! Output error message matches target error message (as provided in $TARGETFILE)"
96else
180# required error output file
181set TARGETERRORFILE = "test-1.sub-4.error.reqd"
182
192# compare the error output with the required output
193diff error.out $TARGETERRORFILE > difference
194if (-z difference) then
194if (-z difference) then
195    echo "Status: OK\!\! Output error message matches target error message (as provided in $TARGETERRORFILE)"
196else
196else
197    echo "Status: ERROR\!\! Following differences exist between error.out and $TARGETERRORFILE :"
198    cat difference
error-handling.sh https://github.com/wwwjscom/Segments-Tester.git | Shell | 301 lines
9
10# required error output file
11set TARGETFILE = "test-2.sub-1.reqd"   
18# now the test!
19echo "Test:   count.pl temp >& error.out" 
20count.pl temp >& error.out
22# compare the actual output with the required output
23diff error.out $TARGETFILE > difference
24if (-z difference) then
26else
27    echo "Status: ERROR\!\! Following differences exist between test-1.out and $TARGETFILE :"
28    cat difference
33/bin/rm -f difference 
34/bin/rm -f error.out
35/bin/rm -f temp
error-handling.sh https://github.com/wwwjscom/Segments-Tester.git | Shell | 211 lines
92if (-z difference) then
93    echo "Status: OK\!\! Output error message matches target error message (as provided in $TARGETFILE)"
94else
176# required error output file
177set TARGETERRORFILE = "test-1.sub-4.error.reqd"
178
188# compare the error output with the required output
189diff error.out $TARGETERRORFILE > difference
190if (-z difference) then
190if (-z difference) then
191    echo "Status: OK\!\! Output error message matches target error message (as provided in $TARGETERRORFILE)"
192else
192else
193    echo "Status: ERROR\!\! Following differences exist between error.out and $TARGETERRORFILE :"
194    cat difference
error-handling.sh https://github.com/wwwjscom/Segments-Tester.git | Shell | 587 lines
50if (-z difference) then
51    echo "Status: OK\!\! Output error message matches target error message (as provided in $TARGETFILE)"
52else
216if (-z difference) then
217    echo "Status: OK\!\! Output error message matches target error message (as provided in $TARGETFILE)"
218else
537else
538    echo "Status: ERROR\!\! Following differences exist between error.out and $TARGETFILE :"
539    cat difference
557if(-z difference) then
558	echo "Status: OK\!\! Output error message matches target error message (as provided in test-1.sub-6.reqd)"
559else
559else
560	echo "Status: ERROR\!\! Following differences exist between error.out and test-1.sub-6.reqd :"
561    cat difference
error-handling.sh https://github.com/wwwjscom/Segments-Tester.git | Shell | 210 lines
91if (-z difference) then
92    echo "Status: OK\!\! Output error message matches target error message (as provided in $TARGETFILE)"
93else
175# required error output file
176set TARGETERRORFILE = "test-1.sub-4.error.reqd"
177
187# compare the error output with the required output
188diff error.out $TARGETERRORFILE > difference
189if (-z difference) then
189if (-z difference) then
190    echo "Status: OK\!\! Output error message matches target error message (as provided in $TARGETERRORFILE)"
191else
191else
192    echo "Status: ERROR\!\! Following differences exist between error.out and $TARGETERRORFILE :"
193    cat difference
error-handling.sh https://github.com/wwwjscom/Segments-Tester.git | Shell | 211 lines
92if (-z difference) then
93    echo "Status: OK\!\! Output error message matches target error message (as provided in $TARGETFILE)"
94else
176# required error output file
177set TARGETERRORFILE = "test-1.sub-4.error.reqd"
178
188# compare the error output with the required output
189diff error.out $TARGETERRORFILE > difference
190if (-z difference) then
190if (-z difference) then
191    echo "Status: OK\!\! Output error message matches target error message (as provided in $TARGETERRORFILE)"
192else
192else
193    echo "Status: ERROR\!\! Following differences exist between error.out and $TARGETERRORFILE :"
194    cat difference
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21