Discussion Forum : exception

Exception: Serialization of 'Closure' is not allowed
So I am not sure exactly what I would have to show you guys, how ever if you need more code please do not hesitate to as ... View Detail
 Upvotes: 0   Answers: 0
symfony2 and throwing exception error
I am trying to throw exceptions and I am doing the following: use Symfony\Component\HttpKernel\Exception\HttpNotFoundEx ... View Detail
 Upvotes: 0   Answers: 0
PHP Fatal error: Uncaught exception 'Exception'
I'm playing around with exceptions in PHP. For example, I have a script that reads a $_GET request and loads a file; If ... View Detail
 Upvotes: 0   Answers: 0
PHPUnit assert that an exception was thrown?
Does anyone know whether there is an assert or something like that which can test whether an exception was thrown in the ... View Detail
 Upvotes: 0   Answers: 0
ASP.NET Exception: The remote name could not be resolved: 'apiconnector.com'
As the title suggests, I'm getting the following exception from an ASP.NET page The remote name could not be resolve ... View Detail
 Upvotes: 0   Answers: 0
The invocation of the constructor on type 'TestWPF.MainWindow' that matches the specified binding constraints threw an exception.- how to fix this?
I'm working with WPF. When I'm trying to declare SQLiteConnection in the code, the problem arises- The invocation of th ... View Detail
 Upvotes: 0   Answers: 0
How to get error line number of code using try-catch
I want to get line number of code which cause error. For example; static void Main(string[] args) {  using (SqlConnecti ... View Detail
 Upvotes: 0   Answers: 0
What is the proper way to display the full InnerException?
What is the proper way to show my full InnerException. I found that some of my InnerExceptions has another InnerExcepti ... View Detail
 Upvotes: 0   Answers: 0
Validating whether a textbox contains only numbers
So I have an idea, because i find it hard to make a code for txtbox that will only allow integer and not a letters in my ... View Detail
 Upvotes: 0   Answers: 0
How do I fix the error Only one usage of each socket address (protocol/network address/port) is normally permitted?
I've done a lot of googling but not had much luck with my issues. I am new to network programming and trying to learn, I ... View Detail
 Upvotes: 0   Answers: 0
Show message box in case of exception
I'm wondering what the correct way is to pass on an exception from one method to my form. public void test() {  try  {  ... View Detail
 Upvotes: 0   Answers: 0
Fixing the 'Use of unassigned local variable' with a null assignment. Why?
With a piece of code like this, the compiler complains on c.MyProperty: MyClass c;  try { throw new Exception(); } catc ... View Detail
 Upvotes: 0   Answers: 0
Resuming execution of code after exception is thrown and caught
How is it possible to resume code execution after an exception is thrown? For example, take the following code: namesp ... View Detail
 Upvotes: 0   Answers: 0
How to serialize an Exception object in C#?
I am trying to serialize an Exception object in C#. However, it appears that it is impossible since the Exception class ... View Detail
 Upvotes: 0   Answers: 0
Exception messages in English?
We are logging any exceptions that happen in our system by writing the Exception.Message to a file. However, they are wr ... View Detail
 Upvotes: 0   Answers: 0
What exceptions should be thrown for invalid or unexpected parameters in .NET?
What types of exceptions should be thrown for invalid or unexpected parameters in .NET? When would I choose one instead ... View Detail
 Upvotes: 0   Answers: 0
Best way to check for inner exception?
I know sometimes innerException is null So the following might fail:  repEvent.InnerException = ex.InnerException.Mess ... View Detail
 Upvotes: 0   Answers: 0
How do I use Assert.Throws to assert the type of the exception?
How do I use Assert.Throws to assert the type of the exception and the actual message wording. Something like this: As ... View Detail
 Upvotes: 0   Answers: 0
Avoiding first chance exception messages when the exception is safely handled
The following bit of code catches the EOS Exception using (var reader = new BinaryReader(httpRequestBodyStream)) {   tr ... View Detail
 Upvotes: 0   Answers: 0
Why does a bad password cause Padding is invalid and cannot be removed?
I needed some simple string encryption, so I wrote the following code (with a great deal of inspiration from here):  // ... View Detail
 Upvotes: 0   Answers: 0
What's the best way to raise an exception in C#?
I traditionally deploy a set of web pages which allow for manual validation of core application functionality. One examp ... View Detail
 Upvotes: 0   Answers: 0
Image.Save(..) throws a GDI+ exception because the memory stream is closed
i've got some binary data which i want to save as an image. When i try to save the image, it throws an exception if the ... View Detail
 Upvotes: 0   Answers: 0
C#: Throwing Custom Exception Best Practices
I have read a few of the other questions regarding C# Exception Handling Practices but none seem to ask what I am lookin ... View Detail
 Upvotes: 0   Answers: 0
Exception.Message vs Exception.ToString()
I have code that is logging Exception.Message. However, I read an article which states that it's better to use Exception ... View Detail
 Upvotes: 0   Answers: 0
Excel error HRESULT: 0x800A03EC while trying to get range with cell's name
I am working with Window Service project. that have to write data to a sheet in Excel file in a sequence times. But som ... View Detail
 Upvotes: 0   Answers: 0

Quick Links

E-Magazines

@

Total Followers
Study Group Created
Study Group Joined
Following Teacher
Following Organization
Blog Articles Added
Questions Asked
Questions Answered
Jobs Posted
Total Members in Group
Questions asked by members
Tasks added in this Group

Please wait..

Ok

Login to Open ESchool OR Create your account    Login   SignUp