100+ results results for 'ERROR' (7589 ms)
122 DCD I2C1_EV_IRQHandler ; I2C1 Event 123 DCD I2C1_ER_IRQHandler ; I2C1 Error 124 DCD 0 ; ReservedCatalogStar.java https://github.com/jankotek/Pixy2.git | Java | 459 lines
104 /** 105 * Gets the mean error of position in arcsec. 106 * @return the mean error of position in arcsec. 107 */ 108 public double getPositionErrorInArcsec ( ) { 109 return 1.0; 112 /** 113 * Gets the maximum error of position in arcsec. It is the search 114 * area size to identify with other stars. 114 * area size to identify with other stars. 115 * @return the maximum error of position in arcsec. 116 */ 116 */ 117 public double getMaximumPositionErrorInArcsec ( ) { 118 return 5.0;itkImageToHistogramFilterTest.cxx https://github.com/crtc/ITK-PBNRR-GITHUB.git | C++ | 402 lines
343 { 344 std::cerr << "Error in bin= " << bin << " channel = " << channel << std::endl; 345 std::cerr << "Frequency was= " << histogram->GetFrequency( bin, channel ) << " Instead of the expected " << expectedFrequency << std::endl;gdaldefaultasync.cpp https://github.com/aashish24/gdal-cmake.git | C++ | 320 lines
89 * activity pending. 90 * - GARIO_ERROR: Something has gone wrong. The asynchronous request should 91 * be ended. 118{ 119 VALIDATE_POINTER1(hARIO, "GDALARGetNextUpdatedRegion", GARIO_ERROR); 120 return ((GDALAsyncReader *)hARIO)->GetNextUpdatedRegion( 139 * 140 * @return TRUE if successful, or FALSE on an error. 141 */ 317 else 318 return GARIO_ERROR; 319}settings.js https://github.com/ChuguluGames/mediawiki-svn.git | JavaScript | 439 lines
71 if (a.length != dimensions) { 72 throw new Error("Expected a tuple of " + dimensions + " dimensions separated with " + separator + " but got " + value); 73 } else { 101 } 102 throw new Error("Expected a floating point number but got " + s); 103 } else if (type == "int") { 111 } 112 throw new Error("Expected an integer but got " + s); 113 } else if (type == "boolean") { 123 } 124 throw new Error("Expected either 'true' or 'false' but got " + s); 125 } else if (type == "function") { 137 } 138 throw new Error("Expected a function or the name of a function but got " + s); 139 } else if (type == "enum") {MultiOperationTest.java https://github.com/yeaya/xixibase.git | Java | 446 lines
107 @Test 108 public void testMultiGetError() { 109 assertNull(cc1.multiGet(null)); 401 @Test 402 public void testMultiError() { 403 int ret = cc1.multiAdd(null); 404 assertEquals(ret, 0); 405 assertNotNull(cc1.getLastError()); 406 int max = 100; 409 assertEquals(ret, 0); 410 assertNotNull(cc1.getLastError()); 411 ArrayList<String> keys = new ArrayList<String>();mmap.c https://github.com/jehc/MondocosmOS.git | C | 409 lines
123 if (!(flags & MAP_ANONYMOUS)) { 124 /* msync() won't work here, so we return an error if write is 125 possible while it is a shared mapping */ 247 (offset & ~qemu_host_page_mask) != (start & ~qemu_host_page_mask)) { 248 /* msync() won't work here, so we return an error if write is 249 possible while it is a shared mapping */ 388#else 389 qerror("target_mremap: unsupported\n"); 390#endifPlayerMpg.cpp https://github.com/noamkfir/WazeWP7.git | C++ | 579 lines
497 cbBufSize = MPG_FILE_BUFF_LEN; 498 if (!pbRead) return RET_ERROR; 499 } 532 if (!fRet || !cbInBuf) { 533 if (!fRet && GetLastError() != ERROR_SUCCESS) { 534 delete [] pbRead; 534 delete [] pbRead; 535 return RET_ERROR; 536 } 553 delete [] pbRead; 554 return RET_ERROR; 555 }minval_i2.c https://bitbucket.org/Underworld79/toolchain_gcc-4.8.git | C | 545 lines
114 if (rank != GFC_DESCRIPTOR_RANK (retarray)) 115 runtime_error ("rank of return array incorrect in" 116 " MINVAL intrinsic: is %ld, should be %ld", 248 else 249 runtime_error ("Funny sized logical array"); 250 307 if (rank != GFC_DESCRIPTOR_RANK (retarray)) 308 runtime_error ("rank of return array incorrect in MINVAL intrinsic"); 309 489 if (rank != GFC_DESCRIPTOR_RANK (retarray)) 490 runtime_error ("rank of return array incorrect in" 491 " MINVAL intrinsic: is %ld, should be %ld", 502 if (extent[n] != ret_extent) 503 runtime_error ("Incorrect extent in return value of" 504 " MINVAL intrinsic in dimension %ld:"NdkCaptureRequest.h https://gitlab.com/jhalayashraj/android_frameworks_av4 | C Header | 309 lines
35#include <android/native_window.h> 36#include "NdkCameraError.h" 37#include "NdkCameraMetadata.h" 96 * be filled in the output argument.</li> 97 * <li>{@link ACAMERA_ERROR_INVALID_PARAMETER} if window or output is NULL.</li></ul> 98 * 119 * <li>{@link ACAMERA_OK} if the method call succeeds.</li> 120 * <li>{@link ACAMERA_ERROR_INVALID_PARAMETER} if request or output is NULL.</li></ul> 121 */ 134 * <li>{@link ACAMERA_OK} if the method call succeeds.</li> 135 * <li>{@link ACAMERA_ERROR_INVALID_PARAMETER} if request or output is NULL.</li></ul> 136 */ 152 * <li>{@link ACAMERA_OK} if the method call succeeds.</li> 153 * <li>{@link ACAMERA_ERROR_INVALID_PARAMETER} if metadata or entry is NULL.</li> 154 * <li>{@link ACAMERA_ERROR_METADATA_NOT_FOUND} if the capture request does not contain ancomp_udp.h https://gitlab.com/YaoQ/mbed-for-linknode | C Header | 191 lines
78#define UDP_FRM_NUM_FRM_NUM_Msk (0x7ffu << UDP_FRM_NUM_FRM_NUM_Pos) /**< \brief (UDP_FRM_NUM) Frame Number as Defined in the Packet Field Formats */ 79#define UDP_FRM_NUM_FRM_ERR (0x1u << 16) /**< \brief (UDP_FRM_NUM) Frame Error */ 80#define UDP_FRM_NUM_FRM_OK (0x1u << 17) /**< \brief (UDP_FRM_NUM) Frame OK */ 178#define UDP_CSR_RXBYTECNT(value) ((UDP_CSR_RXBYTECNT_Msk & ((value) << UDP_CSR_RXBYTECNT_Pos))) 179#define UDP_CSR_ISOERROR (0x1u << 3) /**< \brief (UDP_CSR[6]) A CRC error has been detected in an isochronous transfer */ 180/* -------- UDP_FDR[6] : (UDP Offset: 0x050) Endpoint FIFO Data Register -------- */class-bp-rest-attachments-group-avatar-endpoint.php https://github.com/livinglab/openlab.git | PHP | 500 lines
110 * @param WP_REST_Request $request Full details about the request. 111 * @return WP_REST_Response|WP_Error 112 */ 131 if ( ! $avatar->full && ! $avatar->thumb ) { 132 return new WP_Error( 133 'bp_rest_attachments_group_avatar_no_image', 168 * @param WP_REST_Request $request Full details about the request. 169 * @return true|WP_Error 170 */ 171 public function get_item_permissions_check( $request ) { 172 $retval = new WP_Error( 173 'bp_rest_group_invalid_id', 189 * 190 * @param true|WP_Error $retval Returned value. 191 * @param WP_REST_Request $request The request sent to the API.precision.cpp https://gitlab.com/CORP-RESELLER/node | C++ | 442 lines
47FixedPrecision::round( 48 DigitList &value, int32_t exponent, UErrorCode &status) const { 49 if (U_FAILURE(status)) { 73 if (fExactOnly && (value.fContext.status & DEC_Inexact)) { 74 status = U_FORMAT_INEXACT_ERROR; 75 } else if (fFailIfOverMax) { 79 if (fMax.getIntDigitCount() < interval.getIntDigitCount()) { 80 status = U_ILLEGAL_ARGUMENT_ERROR; 81 } 152 VisibleDigits &digits, 153 UErrorCode &status) const { 154 if (U_FAILURE(status)) { 175 VisibleDigits &digits, 176 UErrorCode &status) const { 177 if (U_FAILURE(status)) {ImfCRgbaFile.h https://bitbucket.org/odellus/opencv.git | C Header | 467 lines
456/* 457** Most recent error message 458*/ 459 460const char * ImfErrorMessage (void); 461buffered_read_stream.hpp https://bitbucket.org/mihail_rylov/ayuine2c.git | C++ Header | 416 lines
116 /// Close the stream. 117 boost::system::error_code close(boost::system::error_code& ec) 118 { 133 std::size_t write_some(const ConstBufferSequence& buffers, 134 boost::system::error_code& ec) 135 { 163 /// Fill the buffer with some data. Returns the number of bytes placed in the 164 /// buffer as a result of the operation, or 0 if an error occurred. 165 std::size_t fill(boost::system::error_code& ec) 235 std::size_t read_some(const MutableBufferSequence& buffers, 236 boost::system::error_code& ec) 237 { 257 258 void operator()(const boost::system::error_code& ec, std::size_t) 259 {write-concern.yml https://github.com/paralect/mongo.git | YAML | 554 lines
218 result: 219 # Client-side error. 220 errorContains: transactions do not support unacknowledged write concern 230 result: 231 # Client-side error. 232 errorContains: transactions do not support unacknowledged write concerngsl_matrix_uchar.h https://github.com/mantidproject/3rdpartyincludes.git | C Header | 358 lines
282 { 283 GSL_ERROR_VAL("first index out of range", GSL_EINVAL, 0) ; 284 } 286 { 287 GSL_ERROR_VAL("second index out of range", GSL_EINVAL, 0) ; 288 } 302 { 303 GSL_ERROR_VOID("first index out of range", GSL_EINVAL) ; 304 } 306 { 307 GSL_ERROR_VOID("second index out of range", GSL_EINVAL) ; 308 } 322 { 323 GSL_ERROR_NULL("first index out of range", GSL_EINVAL) ; 324 }context.ipp https://github.com/mantidproject/3rdpartyincludes.git | C++ Header | 527 lines
203 { 204 ec = boost::system::error_code(::ERR_get_error(), 205 boost::asio::error::get_ssl_category()); 305 { 306 ec = boost::system::error_code(::ERR_get_error(), 307 boost::asio::error::get_ssl_category()); 344 { 345 ec = boost::system::error_code(::ERR_get_error(), 346 boost::asio::error::get_ssl_category()); 384 { 385 ec = boost::system::error_code(::ERR_get_error(), 386 boost::asio::error::get_ssl_category()); 423 { 424 ec = boost::system::error_code(::ERR_get_error(), 425 boost::asio::error::get_ssl_category());strlist.c http://omnia2droid.googlecode.com/svn/trunk/ | C | 201 lines
This C code implements a string list data structure, which is a red-black tree-based implementation of a list of strings. It provides functions for adding, removing, and parsing entries from the list, as well as loading entries from a file. The data structure can be used to store and manage a collection of unique strings.
162 if (slist && strlist__parse_list(self, slist) != 0) 163 goto out_error; 164 } 166 return self; 167out_error: 168 free(self);car_plantilla.control.php https://gitlab.com/talueses/SIPVE | PHP | 286 lines
47 /** 48 * @var string mensaje de exito o error 49 */ 240 241 // ------------------------------- MENSAJE ERROR --------------------------------// 242 if(!$exito){cake_session.test.php https://github.com/tomatointhesand/calaccess.git | PHP | 477 lines
179/** 180 * testError method 181 * 184 */ 185 function testError() { 186 $this->Session->read('Does.not.exist'); 186 $this->Session->read('Does.not.exist'); 187 $result = $this->Session->error(); 188 $this->assertEqual($result, "Does.not.exist doesn't exist"); 190 $this->Session->delete('Failing.delete'); 191 $result = $this->Session->error(); 192 $this->assertEqual($result, "Failing.delete doesn't exist"); 223 $this->Session->watch('Watching'); 224 $this->expectError('Writing session key {Watching}: "They found us!"'); 225 $this->Session->write('Watching', 'They found us!');lzma.js https://github.com/danielribeiro/three.js.git | JavaScript | 510 lines
505 if ( !decoder.decode(inStream, outStream, outSize) ){ 506 throw "Error in data stream"; 507 }branches_spec.rb https://gitlab.com/damienadermann/gitlab-ce | Ruby | 302 lines
38 39 it "returns a 403 error if guest" do 40 get api("/projects/#{project.id}/repository/branches", user2) 43 44 it "returns a 404 error if branch is not available" do 45 get api("/projects/#{project.id}/repository/branches/unknown", user) 190 191 it "returns a 404 error if branch not found" do 192 put api("/projects/#{project.id}/repository/branches/unknown/protect", user) 195 196 it "returns a 403 error if guest" do 197 put api("/projects/#{project.id}/repository/branches/#{branch_name}/protect", user2)members_spec.rb https://gitlab.com/dcondrey/gitlab-ee | Ruby | 363 lines
180 context 'project in a group' do 181 it 'returns a 405 method not allowed error when group membership lock is enabled' do 182 group_with_membership_locked = create(:group, membership_lock: true)detect.c https://github.com/fujimogn/w3m.git | C | 544 lines
35#define DETECT_BROKEN 4 36#define DETECT_ERROR 8 37#define SET_DETECT(x,y) ((x) |= (y)) 37#define SET_DETECT(x,y) ((x) |= (y)) 38#define SET_BROKEN_ERROR(x) ((x) = ((x) & DETECT_BROKEN) ? DETECT_ERROR : ((x) | DETECT_BROKEN)) 39 84 int euc_state = 0, sjis_state = 0, big5_state = 0, hz_state = 0; 85 int iso_detect = DETECT_ERROR, euc_detect = DETECT_ERROR, 86 sjis_detect = DETECT_ERROR, big5_detect = DETECT_ERROR, 86 sjis_detect = DETECT_ERROR, big5_detect = DETECT_ERROR, 87 hz_detect = DETECT_ERROR, latin_detect = DETECT_ERROR, 88 priv_detect = DETECT_ERROR; 93 int utf8_state = 0; 94 int utf8_detect = DETECT_ERROR; 95 int utf8_next = 0;test_dgm_uni.py https://github.com/pv-bull/sequencer.git | Python | 300 lines
23 cp.readfp(f) 24 except IOError: 25 return "OMGBBQ" 40 cp.readfp(f) 41 except IOError: 42 return "OMGBBQ"merge_requests.rb https://gitlab.com/timothyandrew/gitlab-ee | Ruby | 312 lines
13 if errors[:project_access].any? 14 error!(errors[:project_access], 422) 15 elsif errors[:branch_conflict].any? 15 elsif errors[:branch_conflict].any? 16 error!(errors[:branch_conflict], 422) 17 elsif errors[:validate_fork].any? 22 23 render_api_error!(errors, 400) 24 end 82 if (errors = validate_label_params(mr_params)).any? 83 render_api_error!({ labels: errors }, 400) 84 end 90 else 91 handle_merge_request_errors! merge_request.errors 92 endVector2h.cs https://gitlab.com/Alex_Green/led_engine | C# | 365 lines
97 /// <param name="y">32-bit single-precision floating-point number.</param> 98 /// <param name="throwOnError">Enable checks that will throw if the conversion result is not meaningful.</param> 99 public Vector2h(Single x, Single y, bool throwOnError) 100 { 101 X = new Half(x, throwOnError); 102 Y = new Half(y, throwOnError); 118 /// <param name="v">OpenTK.Vector2</param> 119 /// <param name="throwOnError">Enable checks that will throw if the conversion result is not meaningful.</param> 120 public Vector2h(Vector2 v, bool throwOnError) 121 { 122 X = new Half(v.X, throwOnError); 123 Y = new Half(v.Y, throwOnError); 140 /// <param name="v">OpenTK.Vector2</param> 141 /// <param name="throwOnError">Enable checks that will throw if the conversion result is not meaningful.</param> 142 public Vector2h(ref Vector2 v, bool throwOnError)jquery.imagesloaded.js https://gitlab.com/adwait.rise/guruautolines | JavaScript | 490 lines
389 this.proxyImage.addEventListener( 'load', this ); 390 this.proxyImage.addEventListener( 'error', this ); 391 // bind to image as well for Firefox. #191 392 this.img.addEventListener( 'load', this ); 393 this.img.addEventListener( 'error', this ); 394 this.proxyImage.src = this.img.src; 420 421 LoadingImage.prototype.onerror = function() { 422 this.confirm( false, 'onerror' ); 427 this.proxyImage.removeEventListener( 'load', this ); 428 this.proxyImage.removeEventListener( 'error', this ); 429 this.img.removeEventListener( 'load', this ); 429 this.img.removeEventListener( 'load', this ); 430 this.img.removeEventListener( 'error', this ); 431 };PQServerOld.java https://gitlab.com/SlyOtis/PeakQ | Java | 369 lines
25 26 public static final int ERROR_DUPLICATE_EMAIL = 0; 27 public static final int ERROR_DUPLICATE_PHONE = 1; 27 public static final int ERROR_DUPLICATE_PHONE = 1; 28 public static final int ERROR_BAD_CONNECTION = 3; 29 public static final int ERROR_UNEXPECTED = 4; 29 public static final int ERROR_UNEXPECTED = 4; 30 public static final int ERROR_NO_MATCH = 5; 31 public static final int ERROR_DUPLICATE_NAME = 6; 31 public static final int ERROR_DUPLICATE_NAME = 6; 32 public static final int ERROR_NO_IMAGE = 7; 33 34 public interface Callback{ 35 void onFailure(int errorCode); 36 void onSuccess(int requestId, final String response);ClpSerializer.java https://github.com/johnnyhowey/liferay-plugins.git | Java | 444 lines
361 catch (Throwable throwable2) { 362 _log.error(throwable2, throwable2); 363gedit-file-browser-store.h https://gitlab.com/tchaik/gedit | C Header | 188 lines
62 GEDIT_FILE_BROWSER_STORE_RESULT_NO_CHANGE, 63 GEDIT_FILE_BROWSER_STORE_RESULT_ERROR, 64 GEDIT_FILE_BROWSER_STORE_RESULT_NO_TRASH, 105 GtkTreeIter *iter); 106 void (* error) (GeditFileBrowserStore *model, 107 guint code, 167 gchar const *new_name, 168 GError **error); 169GeditFileBrowserStoreResult gedit_file_browser_store_delete (GeditFileBrowserStore *model,resources.rb https://github.com/mattetti/merb.git | Ruby | 329 lines
87 elsif options[:identify] 88 raise Error, "The constant #{klass_name} does not exist, please specify the constant for this resource" 89 end 89 end 90 rescue NameError => e 91 Merb.logger.debug!("Could not find resource model #{klass_name}")parse-events.y https://gitlab.com/felipe_artur/linux-stable | Happy | 672 lines
303 struct parse_events_evlist *data = _data; 304 struct parse_events_error *error = data->error; 305 struct list_head *list; 315 struct parse_events_evlist *data = _data; 316 struct parse_events_error *error = data->error; 317 struct list_head *list; 327 struct parse_events_evlist *data = _data; 328 struct parse_events_error *error = data->error; 329 struct list_head *list; 385 struct parse_events_evlist *data = _data; 386 struct parse_events_error *error = data->error; 387 struct list_head *list; 447 struct parse_events_evlist *data = _data; 448 struct parse_events_error *error = data->error; 449 struct list_head *list;users.php https://github.com/nistormihai/Newscoop.git | PHP | 190 lines
38regGS("Another user is registered with that e-mail address, please choose a different one.", "Another user is registered with that e-mail address, please choose a different one."); 39regGS("There was an error when trying to update the user info.", "There was an error when trying to update the user info."); 40regGS("Are you sure you want to delete the IP Group $1:$2?", "Are you sure you want to delete the IP Group $1:$2?"); 112regGS("The IP Group $1 has been created.", "The IP Group $1 has been created."); 113regGS("There was an error creating the IP address group.", "There was an error creating the IP address group."); 114regGS("The IP address group $1 has been deleted.", "The IP address group $1 has been deleted.");Sql.php https://github.com/heavy-cloud/Codeita.git | PHP | 495 lines
51 $this->conn = false; 52 $this->errorMessage = $error->getMessage(); 53 } 62 $this->conn = false; 63 $this->errorMessage = $error->getMessage(); 64 } 142 if (!$queryResult) { 143 $errorInfo = $this->conn->errorInfo(); 144 $this->errorMessage = $errorInfo[2]; 151 if (!$queryResult) { 152 $this->errorMessage = mysql_error(); 153 } 159 if (!$queryResult) { 160 $this->errorMessage = sqlite_error_string(sqlite_last_error($this->conn)); 161 }pkg_spec.rb https://github.com/jaredjennings/puppet-1.git | Ruby | 255 lines
29 described_class.pkg_state('extra').should 30 }.to raise_error(ArgumentError, /Unknown format/) 31 end 41 described_class.ifo_flag('x--').should 42 }.to raise_error(ArgumentError, /Unknown format/) 43 end 53 described_class.parse_line('pkg (mypkg) 1.2.3.4 i-- zzz').should 54 }.to raise_error(ArgumentError, /Unknown line format/) 55 end 119 described_class.instances 120 }.to raise_error(ArgumentError, /Unknown line format pkg/) 121 end 125 described_class.instances 126 }.to raise_error(ArgumentError, /Unknown format pkg/) 127 endgnu_io_RXTXPort.h https://github.com/neophob/librxtx.git | C Header | 533 lines
411 * Class: gnu_io_RXTXPort 412 * Method: nativeGetParityErrorChar 413 * Signature: ()B 414 */ 415JNIEXPORT jbyte JNICALL Java_gnu_io_RXTXPort_nativeGetParityErrorChar 416 (JNIEnv *, jobject); 419 * Class: gnu_io_RXTXPort 420 * Method: nativeSetParityErrorChar 421 * Signature: (B)Z 422 */ 423JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeSetParityErrorChar 424 (JNIEnv *, jobject, jbyte);Make_Bug_Report.bsh https://jedit.svn.sourceforge.net/svnroot/jedit | Unknown | 119 lines
40 { 41 Macros.error(view, "Error opening Activity Log."); 42 return; 48 lastError = new StringBuffer(); 49 insideError = false; 50 startupDone = false; 70 } 71 else if(line.startsWith("[error]")) 72 { 74 { 75 lastError.setLength(0); 76 insideError = true; 86 { 87 Macros.error(view, "Error reading Activity Log"); 88 }daemonizable.rb git://github.com/opscode/chef.git | Ruby | 150 lines
This Ruby code defines a module Daemonizable
for Chef Expander, which is used to manage and run processes as daemons. It provides methods to daemonize a process, ensure only one instance runs with a given configuration, and set user and group settings if configured. It also handles errors and exceptions, such as acquiring locks on the pidfile and writing process IDs to it.
24 25 class AlreadyRunning < RuntimeError 26 end 27 28 class NoSuchUser < ArgumentError 29 end 30 31 class NoSuchGroup < ArgumentError 32 end 44 # * NoSuchGroup::: when a group is configured that doesn't exist 45 # * SystemCallError::: if there is an error creating the pidfile 46 def configure_process 79 unless (set_group && set_user) 80 log.error {"Unable to change user to #{Expander.config.user} - Are you root?"} 81 endErrorsOptionPane.java https://jedit.svn.sourceforge.net/svnroot/jedit | Java | 292 lines
This Java code defines a GUI component, ErrorsOptionPane
, which displays a list of error matches and allows users to edit them. It includes buttons for adding, removing, moving up/down, and reloading errors, as well as handling mouse clicks and list selection changes. The component uses a custom model and view to manage the data and display it in a user-friendly manner.
102 103 errorListModel = ErrorListModel.load(); 104 errorList = new JList(); 193 { 194 ErrorMatcher matcher = (ErrorMatcher)errorList.getSelectedValue(); 195 if (matcher != null) 243 else if (! errorListModel.isEmpty()) 244 errorList.setSelectedIndex(errorListModel.size() - 1); 245 errorList.repaint(); 250 int index = errorList.getSelectedIndex(); 251 ErrorMatcher selected = errorListModel.get(index); 252 errorListModel.removeElementAt(index); 259 int index = errorList.getSelectedIndex(); 260 ErrorMatcher matcher = errorListModel.get(index); 261 errorListModel.removeElementAt(index);SpecialCommentRemover.java https://jedit.svn.sourceforge.net/svnroot/jedit | Java | 347 lines
This Java code defines a plugin for a text editor, specifically for removing special comments from SQL queries. It provides an option pane to add, edit, and delete special comments, which are then used to modify the SQL queries when they are executed. The plugin updates the modified queries in real-time as new comments are added or deleted.
336 { 337 Log.log( Log.ERROR, SpecialCommentRemover.CommentOptionPane.class, ex ); 338 }AnonymousClassVariableHidesOuterClassVariableVisitor.java https://bitbucket.org/nbargnesi/idea.git | Java | 121 lines
62 for (PsiVariable variable : variables) { 63 registerVariableError(variable, variable); 64 } 78 for (PsiVariable variable : variables) { 79 registerVariableError(variable, variable); 80 }BufferListTreeNode.java https://jedit.svn.sourceforge.net/svnroot/jedit | Java | 144 lines
This Java class represents a tree node for a BufferList data structure, which is likely used in an integrated development environment (IDE). It extends the DefaultMutableTreeNode class and provides additional functionality such as storing user paths, buffer objects, and flags to track expansion and connection status.
93 { 94 user_path = "ERROR"; 95 }gnome-print-check.m4 https://freespeech.svn.sourceforge.net/svnroot/freespeech | m4 | 172 lines
This M4 code defines a macro AM_PATH_GNOME_PRINT
that tests for the presence and version of GNOME-PRINT, a printing system used in GNOME desktop environments. It checks if the required version is met by running a test program and provides error messages if not found or incompatible. The macro can be used to configure build systems to include GNOME-PRINT support.
152 [ echo "*** The test program failed to compile or link. See the file config.log for the" 153 echo "*** exact error that occured. This usually means GNOME-PRINT was incorrectly installed" 154 echo "*** or that you have moved GNOME-PRINT since it was installed. In the latter case, you" 169AC_DEFUN([GNOME_PRINT_CHECK], [ 170 AM_PATH_GNOME_PRINT(0.1.0,,[AC_MSG_ERROR(GNOME-PRINT not found)]) 171])REFilterReader.java https://jedit.svn.sourceforge.net/svnroot/jedit | Java | 118 lines
This Java class, REFilterReader
, is a filter reader that replaces occurrences of a given regular expression with replacement text when reading from a stream. It uses a custom CharIndexedReader
to track character positions and matches the input against a specified regular expression, replacing matches with the provided replacement text.
60 * Reads the next character from the stream per the general contract of 61 * Reader.read(). Returns -1 on error or end of stream. 62 */activity-log.xml https://jedit.svn.sourceforge.net/svnroot/jedit | XML | 43 lines
24 operating system, architecture, etc).</para></listitem> 25 <listitem><para>All error messages and runtime exceptions (most errors 26 are shown in dialog boxes as well, but the activity log usuallyIO.java https://jedit.svn.sourceforge.net/svnroot/jedit | Java | 63 lines
This Java code provides a utility class named IO
that offers methods to close input and output streams, handling potential exceptions and logging errors. It ensures streams are properly closed to prevent resource leaks, while also providing a way to log any errors that occur during the closing process.
42 } catch (IOException e) { 43 Log.log(Log.ERROR, IO.class, e); 44 } 57 } catch (IOException e) { 58 Log.log(Log.ERROR, IO.class, e); 59 }ExpectedHighlightingData.java https://bitbucket.org/nbargnesi/idea.git | Java | 588 lines
66 67 @NonNls private static final String ERROR_MARKER = "error"; 68 @NonNls private static final String WARNING_MARKER = "warning"; 70 @NonNls private static final String INFO_MARKER = "info"; 71 @NonNls private static final String END_LINE_HIGHLIGHT_MARKER = "EOLError"; 72 @NonNls private static final String END_LINE_WARNING_MARKER = "EOLWarning"; 128 129 highlightingTypes.put(ERROR_MARKER, new ExpectedHighlightingSet(HighlightSeverity.ERROR, false, true)); 130 highlightingTypes.put(WARNING_MARKER, new ExpectedHighlightingSet(HighlightSeverity.WARNING, false, checkWarnings)); 140 } 141 highlightingTypes.put(END_LINE_HIGHLIGHT_MARKER, new ExpectedHighlightingSet(HighlightSeverity.ERROR, true, true)); 142 highlightingTypes.put(END_LINE_WARNING_MARKER, new ExpectedHighlightingSet(HighlightSeverity.WARNING, true, checkWarnings)); 290 catch (Exception e) { 291 LOG.error(e); 292 }ForToEachPredicate.java https://bitbucket.org/nbargnesi/idea.git | Java | 38 lines
18import com.intellij.psi.PsiElement; 19import org.jetbrains.plugins.groovy.intentions.base.ErrorUtil; 20import org.jetbrains.plugins.groovy.intentions.base.PsiElementPredicate; 35 } 36 return !ErrorUtil.containsError(element); 37 }IconComposer.java https://jedit.svn.sourceforge.net/svnroot/jedit | Java | 366 lines
This Java code is part of a version control system, specifically a plugin for a text editor called PV. It provides functionality for composing icons based on file states and versions. The code includes classes for icon composition, file state management, and version control provider interfaces. It allows the plugin to display different icons in the text editor depending on the file’s status and version.
39 40import errorlist.ErrorSource; 41 82 private final static Icon MSG_STATE_ERRORS_IMG = 83 new ImageIcon(IconComposer.class.getResource("/projectviewer/images/msg_state_errors.png")); 84 307 int msg_state = IconComposer.MSG_STATE_NONE; 308 ErrorSource[] sources = ErrorSource.getErrorSources(); 309 for(int i = 0; i < sources.length; i++) { 311 msg_state = IconComposer.MSG_STATE_MESSAGES; 312 ErrorSource.Error[] errors = sources[i].getAllErrors(); 313 for(int j=0; j < errors.length; j++) { 313 for(int j=0; j < errors.length; j++) { 314 if(errors[j].getErrorType() == ErrorSource.ERROR 315 && errors[j].getFilePath().equals(path)) {NodeRenamerAction.java https://jedit.svn.sourceforge.net/svnroot/jedit | Java | 335 lines
This Java code is part of a project that allows users to rename nodes (files, directories) within a project structure. It provides a dialog for inputting new names and includes options to prevent changes on disk. The code handles renaming files, directories, and projects, and updates the project structure accordingly.
95 JOptionPane.showMessageDialog(viewer, 96 jEdit.getProperty("projectviewer.action.rename.file_error"), 97 jEdit.getProperty("projectviewer.action.rename.title"), 97 jEdit.getProperty("projectviewer.action.rename.title"), 98 JOptionPane.ERROR_MESSAGE); 99 } else { 109 jEdit.getProperty("projectviewer.action.rename.title"), 110 JOptionPane.ERROR_MESSAGE); 111 } else { 116 if (!isValid) { 117 GUIUtilities.error(viewer, "projectviewer.action.rename.cannot_rename", null); 118 } 133 JOptionPane.showMessageDialog(viewer, 134 jEdit.getProperty("projectviewer.action.rename.rename_error"), 135 jEdit.getProperty("projectviewer.action.rename.title"),HyperSearchRequest.java https://jedit.svn.sourceforge.net/svnroot/jedit | Java | 420 lines
This Java code implements a text search functionality for a BeanShell editor. It searches for matches of a given pattern within a text buffer, highlighting and displaying the matched text in a hierarchical structure, with subnodes representing individual lines or ranges of lines that contain matches. The search is case-insensitive and can be configured to ignore certain characters or patterns.
85 { 86 GUIUtilities.error(view,"empty-fileset",null); 87 } 144 { 145 Log.log(Log.ERROR,this,e); 146 SwingUtilities.invokeLater(new Runnable() 149 { 150 GUIUtilities.error(view,"searcherror", 151 new String[] { e.toString() });PropertyParser.java https://jedit.svn.sourceforge.net/svnroot/jedit | Java | 150 lines
This Java code defines a PropertyParser
class that extends SideKickParser
. It parses properties from a given buffer and converts them to a tree data structure, which can be used in a text editor. The parser handles errors and sends error messages to an ErrorSource
object. It uses regular expressions to extract location information from exception messages.
46import sidekick.property.parser.property.Token; 47import errorlist.DefaultErrorSource; 48import errorlist.ErrorSource; 69 * @param buffer the buffer to parse 70 * @param errorSource where to send any error messages 71 * @return data for the tree 72 */ 73 public SideKickParsedData parse( Buffer buffer, DefaultErrorSource errorSource ) { 74 String filename = buffer.getPath(); 108 to the ErrorList plugin. */ 109 private void handleErrors( Buffer buffer, DefaultErrorSource errorSource, List<ParseException> errors ) { 110 for ( ParseException pe : errors ) { 111 Location loc = getExceptionLocation( pe ); 112 errorSource.addError( ErrorSource.ERROR, buffer.getPath(), loc.line, loc.column, loc.column, pe.getMessage() ); 113 }TigerLabeler.java https://jedit.svn.sourceforge.net/svnroot/jedit | Java | 787 lines
This Java code is part of a class that generates HTML labels for Java syntax elements, such as methods, fields, and classes. It takes into account various options to customize the appearance of these labels, including icons, formatting, and alignment. The output is an HTML string that can be used in a graphical user interface or other application.
51 protected static ImageIcon IMPORT_ICON = null; 52 protected static ImageIcon ERROR_ICON = null; 53 protected static ImageIcon CLASS_ICON = null; 71 protected static ImageIcon E_IMPORT_ICON = null; 72 protected static ImageIcon E_ERROR_ICON = null; 73 protected static ImageIcon E_CLASS_ICON = null; 110 try { 111 ERROR_ICON = new ImageIcon(TigerLabeler.class.getClassLoader().getResource("sidekick/java/icons/Error.gif")); 112 } 341 switch (tn.getOrdinal()) { 342 case TigerNode.ERROR: 343 icon = ERROR_ICON; 444 switch (tn.getOrdinal()) { 445 case TigerNode.ERROR: 446 icon = ERROR_ICON;lua.xml https://jedit.svn.sourceforge.net/svnroot/jedit | XML | 235 lines
98 <KEYWORD2>dofile</KEYWORD2> 99 <KEYWORD2>error</KEYWORD2> 100 <KEYWORD2>_G</KEYWORD2> 127 <KEYWORD2>_ALERT</KEYWORD2> 128 <KEYWORD2>_ERRORMESSAGE</KEYWORD2> 129 <KEYWORD2>_PROMPT</KEYWORD2>ImportDialog.java https://jedit.svn.sourceforge.net/svnroot/jedit | Java | 270 lines
This Java code creates a dialog box for importing data into a version control system, specifically Subversion (SVN). The dialog allows users to input the URL of the SVN repository, the local directory to import from, and their username and password. Once entered, the user can click “OK” to generate a CopyData
object containing the necessary information for importing the data into the SVN repository.
200 if ( url == null || url.getText().length() == 0 ) { 201 JOptionPane.showMessageDialog( ImportDialog.this, jEdit.getProperty("ips.URL_is_required.", "URL is required."), jEdit.getProperty("ips.Error", "Error"), JOptionPane.ERROR_MESSAGE ); 202 return ; 204 if ( path == null || path.getText().length() == 0 ) { 205 JOptionPane.showMessageDialog( ImportDialog.this, jEdit.getProperty("ips.Directory_is_required.", "Directory is required."), jEdit.getProperty("ips.Error", "Error"), JOptionPane.ERROR_MESSAGE ); 206 return ;bind_tests_advanced.cpp http://hadesmem.googlecode.com/svn/trunk/ | C++ | 0 lines
This C++ code is a test suite for the Phoenix library, which provides a set of functional programming utilities. It tests various features such as nested binds, unlambda functions, protect, and lambda functors used as arguments to other lambda functors. The tests verify that these features work correctly and produce expected results.
106 // This would result in; 107 // bind(_1 + 1, _1)(make_const(100)) , which would be a compile time error 108 379 // If the argument type is not the same as the expected type, 380 // return void, which will cause an error. Note that we 381 // can't just assert that the types are the same, becauseActive.jedit-scheme https://jedit.svn.sourceforge.net/svnroot/jedit | Unknown | 78 lines
13view.status.memory.foreground=\#cccccc 14error-list.warningColor=\#ffa800 15jdiff.invalid-color=\#cccccc 61jdiff.overview-changed-color=\#ffcc66 62error-list.errorColor=\#ff0000 63console.errorColor=\#ff0000Delegate.java https://jedit.svn.sourceforge.net/svnroot/jedit | Java | 573 lines
This Java code is part of a text editor’s plugin system, responsible for managing various menus and actions. It defines classes for handling recent files, macros, and new views, as well as actions to show files in the Finder. The code provides a framework for plugins to interact with the text editor, allowing users to customize its behavior through menu options and keyboard shortcuts.
252 if (jEdit.openFile(view,file.getPath()) == null) 253 Log.log(Log.ERROR,this,"Error opening file."); 254 } 296 NSData data = pboard.dataForType("NSFilenamesPboardType"); 297 String[] error = new String[1]; 298 int[] format = new int[1]; 301 format, 302 error); 303 int count = filenames.count();Patch.java https://jedit.svn.sourceforge.net/svnroot/jedit | Java | 395 lines
This Java code implements a patch editor that applies changes to a text file by applying chunks of text, known as “patches”, to the original file. It supports three types of patches: add (insertion), change (replacement), and delete (removal). The code uses an offset-based system to apply patches to the original file, allowing for precise control over where in the file each patch is applied.
216 * This will adjust the following chunk operations so that they match the right lines. 217 * Without this there could be errors after the first chunk was applied, if this changed 218 * the number of lines. So we keep track of how many lines were added and/or removed and 278 if ( fromLine < 0 || toLine < 0 || baseText == null ) { 279 log( "### delete() - Argument ERROR" ); 280 return baseText; 314 if ( fromLine < 0 || toLine < 0 || baseText == null || changeTo == null ) { 315 log( "### change() - Argument ERROR" ); 316 return baseText; 367 if ( line < 0 || baseText == null || insertion == null ) { 368 log( "### add(line: " + line + ", insertion: " + insertion + ", baseText: " + baseText + ") - Argument ERROR" ); 369 return baseText;Toggle_ReadOnly.bsh https://jedit.svn.sourceforge.net/svnroot/jedit | Unknown | 88 lines
45 { 46 Macros.error(view, "This macro only works on local files."); 47 return; 64 { 65 Macros.error(view, "This macro only works on Windows, Unix, & MacOS X."); 66 return;query.php http://forceworkbench.googlecode.com/svn/trunk/workbench/ | PHP | 996 lines
This PHP code is part of a Salesforce Workbench application, handling query-related functionality. It generates query results, exports data to CSV, and allows users to execute queries asynchronously. The code also handles errors, warnings, and export options, providing a user-friendly interface for interacting with Salesforce data.
99 print "<p> </p>"; 100 displayError("count() is not supported for CSV. View as List or choose fields and try again."); 101 include_once 'footer.php'; 671 if ($memLimitBytes != 0 && (memory_get_usage() / $memLimitBytes > $memWarningThreshold)) { 672 displayError("Workbench almost exhausted all its memory after only processing " . count($records) . " rows of data. 673 When performing a large queries, it is recommended to export as Bulk CSV or Bulk XML.", 690 print "<p><a name='qr'> </a></p>"; 691 displayError($e->getMessage(),true,true); 692 } 920 print "<p />"; 921 displayError($e->getMessage(), false, true); 922 } 938 try { 939 $csvFile = fopen('php://output','w') or die("Error opening php://output"); 940 $csvFilename = "export" . date('YmdHis') . ".csv";hayes-esp.txt http://omnia2droid.googlecode.com/svn/trunk/ | Unknown | 155 lines
148 149If I/O errors are experienced when accessing the port, check for IRQ and DMA 150conflicts ('cat /proc/interrupts' and 'cat /proc/dma' for a list of IRQs andMakefile http://omnia2droid.googlecode.com/svn/trunk/ | Makefile | 9 lines
1# kbuild trick to avoid linker error. Can be omitted if a module is built. 2obj- := dummy.oguidelines.html http://hadesmem.googlecode.com/svn/trunk/ | HTML | 0 lines
This HTML code outputs a documentation page for a C++ library, specifically a container class. It provides detailed information on how to use and implement the class, including best practices and common pitfalls. The content is organized into sections, with links to related resources and references. The output appears to be a technical manual or reference guide for developers using the library.
56 57div.admonition, div.attention, div.caution, div.danger, div.error, 58div.hint, div.important, div.note, div.tip, div.warning { 69div.attention p.admonition-title, div.caution p.admonition-title, 70div.danger p.admonition-title, div.error p.admonition-title, 71div.warning p.admonition-title {QtSql.4.0.0.linux-gcc-ppc32.txt https://bitbucket.org/ultra_iter/qt-vtl.git | Plain Text | 1875 lines
62060 __cxa_pure_virtual 62164 QFileEngine::error 62268 QFileEngine::errorStringboot.c http://omnia2droid.googlecode.com/svn/trunk/ | C | 1847 lines
This C code is part of the Linux kernel’s ACPI (Advanced Configuration and Power Interface) subsystem. It initializes and configures various ACPI-related parameters, such as enabling or disabling ACPI features, setting interrupt routing, and configuring system clock sources. The code also handles command-line arguments to control these settings during boot time.
730 * Parse LAPIC entries in MADT 731 * returns 0 on success, < 0 on error 732 */ 762 printk(KERN_ERR PREFIX 763 "Error parsing LAPIC address override entry\n"); 764 return count; 789 printk(KERN_ERR PREFIX 790 "Error parsing LAPIC address override entry\n"); 791 return count; 809 } else if (count < 0 || x2count < 0) { 810 printk(KERN_ERR PREFIX "Error parsing LAPIC entry\n"); 811 /* TBD: Cleanup to allow fallback to MPS */ 820 if (count < 0 || x2count < 0) { 821 printk(KERN_ERR PREFIX "Error parsing LAPIC NMI entry\n"); 822 /* TBD: Cleanup to allow fallback to MPS */BrowserColorsOptionPane.java https://jedit.svn.sourceforge.net/svnroot/jedit | Java | 346 lines
This Java code creates a GUI component for managing browser colors. It allows users to add, remove, and edit color settings for different file types. The component displays a table with two columns: one for glob patterns and another for corresponding colors. Users can select new colors from a palette or enter custom values. The changes are saved when the user clicks “Save”.
287 default: 288 throw new InternalError(); 289 }FtpClient.java https://jedit.svn.sourceforge.net/svnroot/jedit | Java | 1046 lines
This Java code implements a basic FTP client and server framework. It provides methods for sending and receiving FTP commands, handling responses, and managing socket connections. The code includes classes for reading and writing data, as well as logging and debugging functionality. It appears to be a foundation for building a full-featured FTP application or library.
295 if (!resp.isPositiveCompletion()) { 296 Log.log(Log.ERROR, this, "couldn't set passive"); 297 return;getlinehandles.m git://github.com/clawpack/clawpack-4.x.git | Objective C | 16 lines
9if (length(level) > 1) 10 error(['getlinehandles : You can only get handles for a single ',... 11 'level of amr data at a time']);NetRexxScriptMacroHandler.nrx https://jedit.svn.sourceforge.net/svnroot/jedit | Unknown | 92 lines
20 21 * display error and return if plugin inactive 22 52 if jEdit.getPlugin("NetRexxScriptPlugin")=null then do 53 Macros.error(view,"The NetRexx Script Plugin is not active.") 54 return 67 say "NetRexx macro handler could not find run method" 68 Macros.error(view,"The runmacro method could not be located.") 69 return 82 catch error=Exception 83 say "runmacro error="error 84 say "cause="error.getCause 84 say "cause="error.getCause 85-- error.getCause.printStackTrace 86 endindex-18.html https://jedit.svn.sourceforge.net/svnroot/jedit | HTML | 822 lines
This HTML code is a documentation page for a Java-based scripting engine, likely Jython. It displays a table of contents with links to various classes, methods, and constants in the engine’s API. The content includes descriptions, syntax, and usage examples for each item, providing a comprehensive reference guide for developers using the engine.
617<DT><A HREF="../org/gjt/sp/jedit/bsh/EvalError.html#reThrow(java.lang.String)"><B>reThrow(String)</B></A> - 618Method in exception org.gjt.sp.jedit.bsh.<A HREF="../org/gjt/sp/jedit/bsh/EvalError.html" title="class in org.gjt.sp.jedit.bsh">EvalError</A> 619<DD>Re-throw the error, prepending the specified message.BrowserOptionPane.html https://jedit.svn.sourceforge.net/svnroot/jedit | HTML | 419 lines
This HTML code is a documentation page for a Java class called BrowserOptionPane
. It displays information about the class, including its purpose, fields, methods, and nested classes. The page includes navigation links to related classes and a summary of the class’s contents. The output appears to be generated by a tool or framework that creates documentation pages from Java source code.
193<TR BGCOLOR="white" CLASS="TableRowColor"> 194<TD><CODE>ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH</CODE></TD> 195</TR>matroxfb_DAC1064.c http://omnia2droid.googlecode.com/svn/trunk/ | C | 1083 lines
This C code is part of a Linux kernel module that initializes and configures a Matrox graphics card, specifically the Mystique and G100 models. It sets up the card’s clock frequencies, DAC settings, and other hardware parameters to enable proper operation. The code also restores the card’s state after initialization and shutdown, ensuring that the system can resume from a previous state when the module is unloaded.
128 Doing so cause immediate PCI lockup :-( Maybe they should 129 generate ABORT or I/O (parity...) error and Linux should 130 recover from this... (kill driver/process). But world is notfirewire.h http://omnia2droid.googlecode.com/svn/trunk/ | C++ Header | 433 lines
This is a Linux kernel header file that provides an interface for interacting with FireWire (IEEE 1394) devices. It defines data structures and functions for sending and receiving packets, managing transactions, and handling ISO packet formats. The code allows users to access and control FireWire devices from the operating system.
20#define fw_notify(s, args...) printk(KERN_NOTICE KBUILD_MODNAME ": " s, ## args) 21#define fw_error(s, args...) printk(KERN_ERR KBUILD_MODNAME ": " s, ## args) 22Ar.java https://jedit.svn.sourceforge.net/svnroot/jedit | Java | 469 lines
This Java code is part of a build tool, specifically for creating archives (e.g., .jar
files). It defines classes and attributes related to archive creation, including file modes, user IDs, group IDs, and long file handling options. The code provides a way to customize the behavior of the archive creation process, such as truncating or omitting files based on certain conditions.
86 * do the business 87 * @throws BuildException on error 88 */ 162 || longFileMode.isOmitMode()) { 163 aOut.setLongFileMode(ArOutputStream.LONGFILE_ERROR); 164 } else if (longFileMode.isBsdMode()) { 202 * @param arFileSet the fileset that the file came from. 203 * @throws IOException on error 204 */ 382 * If the fullpath ends in '/' the file is omitted from the archive. 383 * It is an error to have more than one file specified in such a fileset. 384 * @param fullpath the path to use for the file in a fileset.Buffer.java https://jedit.svn.sourceforge.net/svnroot/jedit | Java | 2124 lines
This Java code is part of a text editor’s implementation, specifically for managing buffers and their properties. It handles buffer creation, saving, loading, and updating, as well as handling autosave features and undo/redo functionality. The code updates various flags and properties to reflect changes in the buffer’s state, such as dirty status, file path, and mode.
321 322 setBooleanProperty(BufferIORequest.ERROR_OCCURRED,false); 323 432 { 433 GUIUtilities.error(view,"buffer-multiple-io",null); 434 return false; 534 newPath, 535 "ioerror.write-error-readonly", 536 null); 575 { 576 VFSManager.error(view,newPath,"ioerror", 577 new String[] { io.toString() }); 588 { 589 VFSManager.error(view,newPath,"ioerror", 590 new String[] { io.toString() });Macros.java https://jedit.svn.sourceforge.net/svnroot/jedit | Java | 1051 lines
This Java code is part of a scripting language handler for the JEdit text editor. It allows users to run scripts written in various languages, such as BeanShell, and provides a way to create and invoke macros in these languages. The code defines an abstract Handler
class that encapsulates the logic for handling different scripting languages, and two concrete implementations: BeanShellHandler
for BeanShell scripts.
51 * <li>{@link #confirm(Component,String,int,int)}</li> 52 * <li>{@link #error(Component,String)}</li> 53 * <li>{@link #input(Component,String)}</li> 119 { 120 Log.log(Log.ERROR, Macros.class, e); 121 return; 135 { 136 Log.log(Log.ERROR,Macros.class,path + 137 ": Cannot find a suitable macro handler, " 160 161 //{{{ error() method 162 /** 162 /** 163 * Utility method that can be used to display an error dialog in a macro. 164 * @param comp The component to show the dialog on behalf of, thisPublicStaticArrayFieldInspection.java https://bitbucket.org/nbargnesi/idea.git | Java | 68 lines
36 @NotNull 37 protected String buildErrorString(Object... infos) { 38 return InspectionGadgetsBundle.message( 64 } 65 registerFieldError(field); 66 }DockableWindowManager.java https://jedit.svn.sourceforge.net/svnroot/jedit | Java | 1210 lines
This Java code defines a dockable window manager for a text editor, allowing plugins to create and manage their own windows with customizable positions (top, left, bottom, right, or floating). The manager handles window creation, positioning, and removal, as well as plugin-specific functionality such as title setting and position registration.
101 String message = xe.getMessage(); 102 Log.log(Log.ERROR,jEdit.class,path + ":" + line 103 + ": " + message); 106 { 107 Log.log(Log.ERROR,jEdit.class,e); 108 } 161 { 162 Log.log(Log.ERROR,this,"Error while opening" 163 + " dockables.dtd:"); 163 + " dockables.dtd:"); 164 Log.log(Log.ERROR,this,e); 165 } */ 234 // can't happen 235 throw new InternalError(); 236 }traps.c http://omnia2droid.googlecode.com/svn/trunk/ | C | 768 lines
This C code defines a set of exception handlers for a Linux kernel, which are triggered when specific conditions occur during execution. The handlers catch and handle exceptions such as stack overflows, division by zero, and data corruption, among others. They print error messages, trigger system calls, and perform other necessary actions to prevent the program from crashing or causing further damage.
398 399#define DO_ERROR_INFO(signr, str, name, sicode, siaddr) \ 400static void name(struct pt_regs * regs, long interruption_code) \ 409 410DO_ERROR_INFO(SIGILL, "addressing exception", addressing_exception, 411 ILL_ILLADR, get_check_address(regs)) 411 ILL_ILLADR, get_check_address(regs)) 412DO_ERROR_INFO(SIGILL, "execute exception", execute_exception, 413 ILL_ILLOPN, get_check_address(regs)) 413 ILL_ILLOPN, get_check_address(regs)) 414DO_ERROR_INFO(SIGFPE, "fixpoint divide exception", divide_exception, 415 FPE_INTDIV, get_check_address(regs)) 415 FPE_INTDIV, get_check_address(regs)) 416DO_ERROR_INFO(SIGFPE, "fixpoint overflow exception", overflow_exception, 417 FPE_INTOVF, get_check_address(regs))eval.bsh https://jedit.svn.sourceforge.net/svnroot/jedit | Unknown | 76 lines
18 by the code are captured in a bsh.EvalError. This includes ParseException 19 for syntactic errors and TargetError for exceptions thrown by the evaluated 20 code. 25 eval("foo>>><>M>JK$LJLK$"); 26 } catch ( EvalError e ) { 27 // ParseException caught here 31 eval("(Integer)true"); // illegal cast 32 } catch ( EvalError e ) { 33 // TargetException caught here 63 <p> 64 Throws bsh.EvalError on error 65 <p> 66 @return the value of the expression. 67 @throws bsh.EvalError on error 68*/ServerKiller.java https://jedit.svn.sourceforge.net/svnroot/jedit | Java | 134 lines
This Java code checks if a jEdit server is running on the local machine, attempts to shut it down by sending a shutdown command, and then exits with an error code if the shutdown fails. It uses a socket connection to communicate with the server and waits for its closure before continuing execution.
120 * try to connect to any running server instance and close it. 121 * exit with an error code on failure, but not if no server was found. 122 */test_registry_parser.cpp http://hadesmem.googlecode.com/svn/trunk/ | C++ | 0 lines
This C++ code tests the functionality of a registry parser for Windows platforms. It creates a test registry key, writes data to it, reads back the data, and compares it with the original data using the boost::property_tree
library. The test also verifies binary translation between string representations and binary data.
82 { 83 BOOST_ERROR(e.what()); 84 }README http://angel-engine.googlecode.com/svn/trunk/ | Unknown | 187 lines
110 where where %devstudio% is the installation directory for MSVC / 111 DevStudio. If you get "environment out of space" errors under 95/98, 112 create a desktop shortcut with "c:\windows\command.com /e:4096" asTokenMarker.java https://jedit.svn.sourceforge.net/svnroot/jedit | Java | 938 lines
This Java code is part of a parser for regular expressions, specifically handling line-by-line parsing and syntax analysis. It manages persistent state per line, including rules, escape characters, and span information, to facilitate accurate parsing and error detection. The code provides a framework for processing input strings according to predefined grammar rules.
425 { 426 throw new InternalError("Can't happen"); 427 } 564 default: 565 throw new InternalError("Unhandled major action"); 566 }gnome.m4 https://freespeech.svn.sourceforge.net/svnroot/freespeech | m4 | 125 lines
This M4 code defines two macros, GNOME_INIT_HOOK
and GNOME_INIT
, which are used to initialize a GNU build system for GNOME projects. It checks if the necessary dependencies (GNOME headers and libraries) are available and sets up various variables accordingly. If the required dependencies are not found, it can abort or continue with warnings. The macros are designed to be used in GNU configure scripts.
91 if test x$2 = xfail; then 92 AC_MSG_ERROR(Could not find the gnomeConf.sh file that is generated by gnome-libs install) 93 finbody6.tex git://github.com/mtrenti/NBODY6.git | LaTeX | 273 lines
This LaTeX code defines a documentation template for a numerical simulation software, specifically for three-body and four-body regularization algorithms. It provides a structure for documenting various components of the software, including regularization methods, integrators, stability tests, and initialization routines. The code is likely used to generate a user manual or technical documentation for the software.
26\+&CHAOS &KSTIDE &Chaotic tidal interactions (\#27). \cr 27\+&CHECK &ADJUST &Error check \& restart (\#2 \& \#17). \cr 28\+&CHECKL ®INT &Addition of neighbours during regular step (\#18). \crBSHMethodInvocation.java https://jedit.svn.sourceforge.net/svnroot/jedit | Java | 104 lines
This Java code defines a class BSHMethodInvocation
that extends SimpleNode
. It handles method invocations in BeanShell, a JavaScript-like scripting language for Java. The class evaluates the method invocation with the specified call stack and interpreter, handling exceptions and errors, and returns the result of the method invocation.
55 public Object eval( CallStack callstack, Interpreter interpreter ) 56 throws EvalError 57 { 75 return name.invokeMethod( interpreter, args, callstack, this); 76 } catch ( ReflectError e ) { 77 throw new EvalError( 77 throw new EvalError( 78 "Error in method invocation: " + e.getMessage(), 79 this, callstack ); 90 boolean isNative = true; 91 if ( te instanceof EvalError ) 92 if ( te instanceof TargetError ) 92 if ( te instanceof TargetError ) 93 isNative = ((TargetError)te).inNativeCode(); 94 elsePluginJAR.java https://jedit.svn.sourceforge.net/svnroot/jedit | Java | 1485 lines
This Java code defines a class for storing and managing plugin data, specifically for a text editor application. It provides methods for reading and writing plugin metadata, such as plugin names, URLs, and boolean flags, to and from a file. The data is stored in a binary format using DataInputStream and DataOutputStream classes.
245 System.getProperty("java.version") }; 246 jEdit.pluginError(path,"plugin-error.dep-jdk",args); 247 ok = false; 461 462 Log.log(Log.ERROR,this,"Error while starting plugin " + className); 463 Log.log(Log.ERROR,this,t); 464 String[] args = { t.toString() }; 465 jEdit.pluginError(path,"plugin-error.start-error",args); 466 604 breakPlugin(); 605 jEdit.pluginError(path,"plugin-error.not-42",null); 606 } 776 String[] args = { io.toString() }; 777 jEdit.pluginError(path,"plugin-error.load-error",args); 778oauth_token_spec.rb http://oauth-plugin.googlecode.com/svn/trunk/ | Ruby | 56 lines
This Ruby code defines a set of tests for a RequestToken
class, which is likely part of an OAuth implementation. The tests verify that a new request token is created and validated correctly, including authorization, invalidation, and exchange processes. It ensures the token’s properties are properly set and behavior is as expected under different scenarios.
12 13 it "should not have errors" do 14 @token.errors.should_not==[]spu_save_crt0.S http://omnia2droid.googlecode.com/svn/trunk/ | Assembly | 103 lines
This Assembly code is for a Linux kernel’s SPU (Synergistic Processing Unit) context save sequence. It saves all 128 general-purpose registers, sets up an initial stack frame, and branches to the program’s main function. The code also initializes the stack pointer, allocates a minimum stack frame, and calls the main function. If the main function returns, it executes a stop-and-signal with code 0.
90 /* In this case main should not return; if it does 91 * there has been an error in the sequence. Execute 92 * stop-and-signal with code=0.BrowserIORequest.java https://jedit.svn.sourceforge.net/svnroot/jedit | Java | 344 lines
This Java code defines a class that handles file system operations, such as deleting, renaming, and creating directories. It provides a way to interact with the file system in a thread-safe manner, catching any exceptions that may occur during these operations and logging error messages accordingly. The class is designed to work within an integrated development environment (IDE) or other application.
165 String[] pp = { io.toString() }; 166 VFSManager.error(browser,path1,"ioerror.directory-error",pp); 167 } 181 String[] pp = { io.toString() }; 182 VFSManager.error(browser,path1,"ioerror.directory-error",pp); 183 } 206 if(!vfs._delete(session,path1,browser)) 207 VFSManager.error(browser,path1,"ioerror.delete-error",null); 208 } 213 String[] pp = { io.toString() }; 214 VFSManager.error(browser,path1,"ioerror.directory-error",pp); 215 } 268 if(!vfs._rename(session,path1,path2,browser)) 269 VFSManager.error(browser,path1,"ioerror.rename-error", 270 new String[] { path2 });REFilterInputStream.java https://jedit.svn.sourceforge.net/svnroot/jedit | Java | 122 lines
This Java class, REFilterInputStream
, filters an input stream by replacing occurrences of a given regular expression with replacement text. It reads from the input stream and replaces matches with the specified replacement string, allowing for interpolation of match data into the replacement string. The filter is applied on-the-fly as the stream is read.
63 * Reads the next byte from the stream per the general contract of 64 * InputStream.read(). Returns -1 on error or end of stream. 65 */Encoding.java https://jedit.svn.sourceforge.net/svnroot/jedit | Java | 65 lines
This Java interface defines an encoding, which is a mapping between character and byte streams. It provides methods to map input/output streams to readers and writers that support specific encodings, allowing for decoding and encoding errors to be handled in different ways. The interface is designed to work with extended encodings like UTF-8Y and ASCII representations used by Java property files.
44 * Map an InputStream to a Reader. 45 * Decode-error while reading from this Reader should be reported 46 * by throwing an IOException. 51 * Map an OutputStream to a Writer. 52 * Encode-error while writing to this Writer should be reported 53 * by throwing an IOException. 58 * Map an InputStream to a Reader. 59 * Decode-error while reading from this Reader should be ignored 60 * or replaced.mac_scsi.c http://omnia2droid.googlecode.com/svn/trunk/ | C | 599 lines
This C code defines a SCSI driver for the NCR5380 controller used in Macintosh computers. It provides functions for detecting and releasing devices, handling commands, and interacting with the bus. The code includes various utility functions and data structures to manage the driver’s behavior. It is part of a larger SCSI module that integrates with other components to provide a complete SCSI interface.
383 Pseudo-DMA: (Ove Edlund) 384 The code attempts to catch bus errors that occur if one for example 385 "trips over the cable". 385 "trips over the cable". 386 XXX: Since bus errors in the PDMA routines never happen on my 387 computer, the bus error code is untested. 387 computer, the bus error code is untested. 388 If the code works as intended, a bus error results in Pseudo-DMA 389 beeing disabled, meaning that the driver switches to slow handshake. 389 beeing disabled, meaning that the driver switches to slow handshake. 390 If bus errors are NOT extremely rare, this has to be changed. 391*/ 470 && (NCR5380_read(BUS_AND_STATUS_REG) & BASR_PHASE_MATCH)) { 471 printk(KERN_ERR "Error in macscsi_pread\n"); 472 return -1;esp6.c http://omnia2droid.googlecode.com/svn/trunk/ | C | 595 lines
This C code implements IPv6 ESP (Encapsulating Security Payload) protocol for IPsec. It registers a new xfrm type and protocol with the kernel, allowing IPv6 packets to be encrypted and authenticated using ESP. The code also defines functions for packet input/output, MTU calculation, and error handling, providing a basic framework for implementing IPv6 ESP in the Linux kernel.
162 if ((err = skb_cow_data(skb, clen - skb->len + alen, &trailer)) < 0) 163 goto error; 164 nfrags = err; 167 if (!tmp) 168 goto error; 169 207 if (err == -EINPROGRESS) 208 goto error; 209 214 215error: 216 return err; 254 255 /* RFC4303: Drop dummy packets without any error */ 256 if (err == IPPROTO_NONE)parse.hpp http://hadesmem.googlecode.com/svn/trunk/ | C++ Header | 0 lines
This C++ header file defines two template metaprogramming structs, parse_impl
and phrase_parse_impl
, which are used to parse expressions in the Boost.Spirit Qi library. They ensure that the input expressions match the Qi domain and provide a way to compile and execute them for parsing purposes.
27 // Report invalid expression error as early as possible. 28 // If you got an error_invalid_expression error message here, 29 // then the expression (expr) is not a valid spirit qi expression. 54 // Report invalid expression error as early as possible. 55 // If you got an error_invalid_expression error message here, 56 // then the expression (expr) is not a valid spirit qi expression. 74 // Report invalid expression error as early as possible. 75 // If you got an error_invalid_expression error message here, 76 // then the skipper is not a valid spirit qi expression.NSString_RegEx.m git://github.com/laullon/gitx.git | Objective C | 97 lines
This Objective C code extends the NSString
class to support regular expression matching and extraction of substrings. It provides two methods: substringsMatchingRegularExpression:count:options:ranges:error:
to find multiple matches, and grep:
to search for a single match with default options. The method returns an array of matched substrings or nil
if no matches are found.
14 15- (NSArray *) substringsMatchingRegularExpression:(NSString *)pattern count:(int)nmatch options:(int)options ranges:(NSArray **)ranges error:(NSError **)error 16{ 17 options |= REG_EXTENDED; 18 if (error) 19 *error = nil; 28 if (errcode != 0) 29 goto catch_error; // regcomp error 30 40 if (errcode != 0) 41 goto catch_error; // regexec error 42 80 [userInfo setObject:[NSString stringWithUTF8String:errbuf] forKey:NSLocalizedDescriptionKey]; 81 *error = [NSError errorWithDomain:@"regerror" code:errcode userInfo:userInfo]; 82 }query_utils.py git://github.com/django/django.git | Python | 351 lines
This Python code is part of a Django framework implementation, specifically related to database queries and model relationships. It defines various classes and functions for handling query optimization, filtering, and relationship management in SQL joins. The code provides functionality for select_related(), filtered relations, and other query-related tasks.
13 14from django.core.exceptions import FieldDoesNotExist, FieldError 15from django.db.models.constants import LOOKUP_SEP 27 def _subclasses(self): 28 return (FieldDoesNotExist, FieldError) 29 32 'The InvalidQuery exception class is deprecated. Use ' 33 'FieldDoesNotExist or FieldError instead.', 34 category=RemovedInDjango40Warning, 72 if not isinstance(other, Q): 73 raise TypeError(other) 74 266 ) % (field.model._meta.object_name, field.name) 267 raise FieldError(msg) 268 return Truetest_iplconvkernel.rb git://github.com/ryanfb/ruby-opencv.git | Ruby | 54 lines
This Ruby code defines a test suite for OpenCV’s IplConvKernel
class, which represents a convolution kernel used in image processing. The tests verify that kernels can be created with different shapes and values, and that invalid arguments raise errors. It also checks the size and anchor of the kernel, ensuring they match the expected values.
23 [:custom, CV_SHAPE_CUSTOM].each { |shape| 24 assert_raise(ArgumentError) { 25 IplConvKernel.new(5, 5, 2, 2, shape) 28 29 assert_raise(TypeError) { 30 IplConvKernel.new(5, 5, 2, 2, :foobar)install-sh https://bitbucket.org/__wp__/mb-linux-msli.git | Shell | 251 lines
233# If any of these fail, we abort the whole thing. If we want to 234# ignore errors from any of these, just make sure not to ignore 235# errors from the above "$doit $instcmd $src $dsttmp" command.w1_io.c http://omnia2droid.googlecode.com/svn/trunk/ | C | 408 lines
This C code provides a set of functions for interacting with W1 (Wireless One) devices, which are used in various applications such as temperature sensors and other low-power wireless devices. The functions include reading and writing data to the device, performing resets, searching for devices, and setting up pull-up times after writes.
194 if (id_bit && comp_bit) 195 return 0x03; /* error */ 196 310 * @param dev The bus master pointer 311 * @return 0=Device present, 1=No device present or error 312 */ 371 * @param sl the slave to select 372 * @return 0=success, anything else=error 373 */ 400 * @param delay time in milliseconds 401 * @return 0=success, anything else=error 402 */ChessClient.java http://community-chess.googlecode.com/svn/trunk/ | Java | 190 lines
This Java program creates a client for an online chess game. It logs into the game, sets up the current board, makes a move, and submits it to the server. The program also displays the current games’ IDs and past games’ IDs. It can challenge other players and calculate the next move for a pawn piece.
69 System.out.println("Woooah. I don't know what you've made! Please " 70 + "try to reproduce this error and report it to " 71 + "code.google.com/p/community-chess !"); 133 + USER_PASSWORD); 134 if (returnVal == "ERROR:You are not logged in.") { 135 return false;regress-283972.js git://github.com/zpao/v8monkey.git | JavaScript | 64 lines
This JavaScript code tests if an XML document throws an error when two attributes with the same local name and namespace are present. It creates an XML string, attempts to parse it, and checks if an exception is thrown. The expected output is that an error should be thrown, but in this case, no error is caught, resulting in a mismatch between the actual and expected values.
39 40var summary = 'throw error when two attributes with the same local name and ' + 41 'the same namespace'; 42var BUGNUMBER = 283972; 43var actual = 'no error'; 44var expect = 'error'; 58{ 59 actual = 'error'; 60}test_binhex.py git://github.com/IronLanguages/main.git | Python | 49 lines
This is a unit test for the binhex
module in Python. It creates two files, one with the data “Jack is my hero” and another empty file. The first file is then encoded using the binhex
function and saved to the second file. After that, the second file is decoded using the hexbin
function and the result is compared to the original data. If the comparison succeeds, the test passes.
20 try: os.unlink(self.fname1) 21 except OSError: pass 22 23 try: os.unlink(self.fname2) 24 except OSError: pass 25DefaultHandler.java https://jedit.svn.sourceforge.net/svnroot/jedit | Java | 38 lines
This Java class implements a default handler for a calculator, providing empty implementations for various methods that handle different scenarios such as errors, operator input, formula start and end, blank characters, numbers, and current position. It essentially serves as a placeholder or no-op implementation, allowing other classes to extend its functionality if needed.
8 9 public void error(String message) throws Exception { 10 //do nothing 12 13 public void fatalError(String message) { 14 //do nothingposixemulation.py git://github.com/mitsuhiko/werkzeug.git | Python | 107 lines
This Python code provides a POSIX emulation for renaming files on Windows systems, allowing for atomic and pseudo-atomic renames. It uses ctypes to interact with Windows API functions and handles cases where the target file already exists. The rename function falls back to traditional OS.rename if atomic rename fails.
93 os.rename(src, dst) 94 except OSError as e: 95 if e.errno != errno.EEXIST:set_campaign_targets.rb https://code.google.com/p/google-api-ads-ruby/ | Ruby | 125 lines
This Ruby script uses the Google AdWords API to add geo, language and network targeting to an existing campaign. It connects to the AdWords API, sets the target values for a specified campaign ID, and handles potential errors that may occur during the process. The script logs any errors that occur, including connection issues or API exceptions.
101 # Connection error. Likely transitory. 102 rescue Errno::ECONNRESET, SOAP::HTTPStreamError, SocketError => e 103 puts 'Connection Error: %s' % e 105 106 # API Error. 107 rescue AdwordsApi::Errors::ApiException => e 111 puts 'Trigger: %s' % e.trigger if e.trigger 112 puts 'Errors:' 113 if e.errors 113 if e.errors 114 e.errors.each_with_index do |error, index| 115 puts ' %d. Error type is %s. Fields:' % [index + 1, error[:xsi_type]] 115 puts ' %d. Error type is %s. Fields:' % [index + 1, error[:xsi_type]] 116 error.each_pair do |field, value| 117 if field != :xsi_typeREADME.md git://github.com/OpenRTMFP/ArcusNode.git | Markdown | 173 lines
This is a documentation for ArcusNode, an RTMFP rendezvous server for peer-assisted networking with Adobe Flash on NodeJS. It explains how to build and install ArcusNode, its usage, customization options, events, commands, and settings. The document also provides information about the project’s status, roadmap, and contact details for developers.
122 Default: 'warn' 123 Can be one of ['fatal', 'error', 'warn', 'info', 'debug']. 124igmp.h http://omnia2droid.googlecode.com/svn/trunk/ | C++ Header | 244 lines
This is a C header file that defines various data structures and functions for managing multicast (multicast) functionality on a network device. It provides an interface for joining, leaving, and manipulating multicast groups, as well as handling incoming multicast packets. The code appears to be part of the Linux kernel’s networking subsystem.
76#else 77#error "Please fix <asm/byteorder.h>" 78#endif