error-suppression Questions

19

Solved

In your opinion, is it ever valid to use the @ operator to suppress an error/warning in PHP whereas you may be handling the error? If so, in what circumstances would you use this? Code examples a...
Plutocracy asked 25/9, 2008 at 23:37

4

I want suppress Valgrind's reporting of some "definitely lost" memory by the library I'm using. I have tried valgrind --gen-suppressions=yes ./a but it only prompts for errors such as "conditional ...
Kisser asked 18/6, 2013 at 2:12

2

Solved

I wondering it is the way to check in tryCatch function kind of errors or warnings like in Java for example. try { driver.findElement(By.xpath(locator)).click(); result= true; } catch (Exceptio...

5

Solved

I have lots of errors regarding background images in css. This is because deployment relative paths will be different from my dev environment. These are inconsequential errors that I know I can't ...
Collector asked 26/2, 2013 at 19:48

6

Solved

I am trying to disable the error bells on vim, both visual and audio. However I cannot get them to stay off. I have the following in my vimrc: " Disable annoying beeping set noerrorbells set vb t...
Ricardaricardama asked 3/9, 2013 at 9:59

1

I've written a web application that uses web-sockets. The idea is that my app tries to auto-connect to recently connected to hosts when it starts up. If it can't establish a connection to any of th...
Wildon asked 13/8, 2015 at 1:56

11

Solved

I have seen uses of @ in front of certain functions, like the following: $fileHandle = @fopen($fileName, $writeAttributes); What is the use of this symbol?
Choppy asked 23/6, 2009 at 12:8

6

Solved

In my shell script I got these lines: rm tempfl.txt rm tempfl2.txt If these do not exist I get the error messages: rm: tempfl2.txt: No such file or directory rm: tempfl.txt: No such file or direct...
Rations asked 28/3, 2013 at 9:57

8

Solved

I am showing a splash screen on a background thread while my program loads. Once it loads I am aborting the Thread as it's only purpose was to show a Now Loading splash form. My problem is that w...
Atalie asked 4/6, 2009 at 14:48

1

I am looking to parse the json file using JQ utility in bash script , though i am able to parse it correctly , whenever there's invalid json content we get parse error message on the cmd line . So ...
Hong asked 8/12, 2016 at 9:2

4

Solved

I would like to use Cppcheck for static code analysis of my C++ code. I learned that I can suppress some kind of warnings with --inline-suppr command. However, I can't find what "suppressed_error_...
Nicety asked 2/6, 2010 at 9:17

2

Solved

here is my code and it works perfectly fine. if (ActivityCompat.checkSelfPermission(activity, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED || ActivityCompat.chec...
Garrettgarrick asked 16/3, 2016 at 9:15

6

Solved

In Visual Basic I wrote just On Error Resume Next in the head of my program and errors were suppressed in the entire project. Here in C# I miss this feature very much. The usual try-catch handling...
Overlong asked 21/7, 2012 at 21:39

1

Solved

My current php.ini file is set to report all errors other than deprecation and strict standards as follows: error_reporting = E_ALL & ~E_STRICT & ~E_DEPRECATED The reason for using this ...
Putative asked 4/3, 2013 at 13:54

1

I'm looking for a possibility to convert raster images to vector data using OpenCV. There I found a function cv::findContours() which seems to be a bit primitive (more probably I did not understand...
Anselme asked 15/10, 2012 at 11:18

14

Solved

I'm pretty sure the answer to this question is no, but in case there's some PHP guru is it possible to write a function in a way where invalid arguments or non existent variables can be passed in ...
Purcell asked 10/9, 2008 at 19:9

3

Solved

I have the following code that generates a compiler error: Boolean IConvertible.ToBoolean(IFormatProvider provider) { ThrowHelper.ThrowInvalidCast(typeof(MyType), typeof(Boolean)); } The com...
Diligent asked 14/2, 2011 at 23:2

6

Solved

Is it OK to use @ when extracting a possibly missing value from a PHP array? Example: $value = @$array['possibly_missing_key']; The intended behavior: if (isset($array['possibly_missing_key']))...
Doggett asked 14/12, 2010 at 16:31

7

Solved

I'm new to PHP and I'm confused seeing some examples calling a function with a @ prefix like @mysql_ping(). What is it for? Googling / searching is not much of a help since @ gets discarded and 'a...
Unrelenting asked 26/9, 2008 at 7:33

3

Solved

i wonder what does @ means when we use it before include or require in php ?! such as : @include('block.php'); maybe its a noob question , but i need to know it guys ?! so sorry for that
Hienhieracosphinx asked 26/4, 2010 at 21:50
1

© 2022 - 2024 — McMap. All rights reserved.