Official Everybody Edits Forums

Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?

You are not logged in.

#1 2015-03-16 12:31:06

madiik
Member
From: floor above Yuuta
Joined: 2015-02-26
Posts: 514

Handling PlayerIOErrors

how

specific details: get PlayerIO Client errors so i don't have to freaking close the application all the time and re-open it, but throw an exception or messagebox to prevent it


shh i have returned

Offline

#2 2015-03-16 12:40:26

Xfrogman43
Member
From: need to find a new home
Joined: 2015-02-15
Posts: 4,174

Re: Handling PlayerIOErrors

Try{
//code
}
Catch(PlayerIOError error)//or something
{
MessageBox.Show(error.ToString());
}


zsbu6Xm.png thanks zoey aaaaaaaaaaaand thanks latif for the avatar

Offline

#3 2015-03-16 12:44:01

madiik
Member
From: floor above Yuuta
Joined: 2015-02-26
Posts: 514

Re: Handling PlayerIOErrors

Xfrogman43 wrote:

Try{
//code
}
Catch(PlayerIOError error)//or something
{
MessageBox.Show(error.ToString());
}

errors give too much information


shh i have returned

Offline

#4 2015-03-16 13:05:01

Xfrogman43
Member
From: need to find a new home
Joined: 2015-02-15
Posts: 4,174

Re: Handling PlayerIOErrors

Are you asking for a simple version of the error? If so, then idk.


zsbu6Xm.png thanks zoey aaaaaaaaaaaand thanks latif for the avatar

Offline

#5 2015-03-16 16:11:32

ewoke
Member
Joined: 2015-02-20
Posts: 412

Re: Handling PlayerIOErrors

error.Message()


if you can read this....good for you

Offline

#6 2015-03-17 09:14:26

realmaster42
Formerly marcoantonimsantos
From: ̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍
Joined: 2015-02-20
Posts: 1,380
Website

Re: Handling PlayerIOErrors

ewoke wrote:

error.Message()

madiik wrote:
Xfrogman43 wrote:

Try{
//code
}
Catch(PlayerIOError error)//or something
{
MessageBox.Show(error.ToString());
}

errors give too much information


http://i.imgur.com/bjvgH5L.png?1

Offline

#7 2015-03-17 14:27:09

ewoke
Member
Joined: 2015-02-20
Posts: 412

Re: Handling PlayerIOErrors

or use delegates!!!


if you can read this....good for you

Offline

#8 2015-03-17 15:17:10

lrussell
Member
From: Saturn's Titan
Joined: 2015-02-15
Posts: 843
Website

Re: Handling PlayerIOErrors

try
{
// Your code here
}
catch (Exception e)
{
// Oops, an error occurred!
Console.WriteLine(e.Message);
}

Offline

Wooted by: (2)
lrussell1426601830483924

Board footer

Powered by FluxBB

[ Started around 1732498324.8151 - Generated in 0.044 seconds, 10 queries executed - Memory usage: 1.45 MiB (Peak: 1.57 MiB) ]