StackOverflow Questions for Tag: function-try-block

Morse
Morse

Reputation: 1562

How to access the object field in a constructor function-try-block?

Score: 2

Views: 60

Answers: 1

Read More
Jan Schultke
Jan Schultke

Reputation: 39668

Why are exceptions thrown during deferred dynamic initialization not caught by main?

Score: 2

Views: 109

Answers: 2

Read More
duong_dajgja
duong_dajgja

Reputation: 4276

Is calling a class member function which does some clean-up stuff on member variables safe if constructor throws?

Score: 0

Views: 81

Answers: 1

Read More
mascai
mascai

Reputation: 1872

What is thre reason of core dump?

Score: -1

Views: 678

Answers: 1

Read More
Adam Barnes
Adam Barnes

Reputation: 3224

Is it possible to have a function-try-block per member initialiser?

Score: 6

Views: 190

Answers: 2

Read More
Han
Han

Reputation: 33

Stop try block automatically iterating to the next loop (for loop java)

Score: 0

Views: 79

Answers: 1

Read More
Ben
Ben

Reputation: 9703

Should function-try-block of d'tor allow handling of throwing member-variable d'tor?

Score: 3

Views: 118

Answers: 1

Read More
cuong.pq
cuong.pq

Reputation: 157

Does function try block allows us to resolve a exception?

Score: 2

Views: 294

Answers: 3

Read More
ralfg
ralfg

Reputation: 552

Do function try blocks on non-contructor functions have any disadvantage?

Score: 2

Views: 91

Answers: 2

Read More
Belloc
Belloc

Reputation: 6390

What is the purpose of a function try block?

Score: 9

Views: 2936

Answers: 2

Read More

How to catch exception from member destructor

Score: 6

Views: 2010

Answers: 2

Read More
Sarfaraz Nawaz
Sarfaraz Nawaz

Reputation: 361522

When is a function try block useful?

Score: 58

Views: 21028

Answers: 6

Read More
user5849987
user5849987

Reputation:

in this example, what is the third missing possibility for the try block?

Score: 0

Views: 49

Answers: 1

Read More
Misguided
Misguided

Reputation: 1312

Weird "candidate expects 1 argument, 0 provided" in constructor

Score: 5

Views: 11518

Answers: 2

Read More
Belloc
Belloc

Reputation: 6390

According to a knowledgeable author within the C++ community, the code shown below should not compile. Is he wrong?

Score: 1

Views: 213

Answers: 3

Read More
iammilind
iammilind

Reputation: 70000

Difference between try-catch syntax for function

Score: 43

Views: 6123

Answers: 4

Read More
koobi
koobi

Reputation: 181

Need for try catch within a constructor

Score: 3

Views: 3180

Answers: 5

Read More
PreviousPage 1Next