StackOverflow Questions for Tag: throws

zwhconst
zwhconst

Reputation: 1463

Why is there not a no-throw guarantee in the standard for std::set::extract() and std::set::insert(nh)?

Score: 10

Views: 465

Answers: 1

Read More
Syed Zabi Ulla
Syed Zabi Ulla

Reputation: 91

Declaring checked exception using throws clause that is never thrown in the body of the method

Score: 3

Views: 714

Answers: 4

Read More
flyingwizard
flyingwizard

Reputation: 3

Eclipse IDE is catching an error in main however main itself has no issues?

Score: 0

Views: 166

Answers: 1

Read More
Dariusz
Dariusz

Reputation: 22251

Thrown checked exception without throws declaration in method

Score: 3

Views: 1613

Answers: 2

Read More
kdhillon
kdhillon

Reputation: 13

Java - Trying to throw an error based on 2 string values in the parameter

Score: 0

Views: 550

Answers: 1

Read More
Patrick
Patrick

Reputation: 612

Java 'throws' keyword in Dart

Score: 2

Views: 3577

Answers: 4

Read More
James P.
James P.

Reputation: 19617

Throws or try-catch

Score: 83

Views: 73454

Answers: 11

Read More
Nor.Z
Nor.Z

Reputation: 1349

Why don't I need to declare an exception in a method [Java]?

Score: 0

Views: 46

Answers: 0

Read More
Marvin
Marvin

Reputation: 953

Use "throws" keyword on callback

Score: 0

Views: 68

Answers: 1

Read More
Stefan
Stefan

Reputation: 1059

Why is main() method allowed to declare exceptions?

Score: 5

Views: 1123

Answers: 2

Read More
Martin Fric
Martin Fric

Reputation: 730

Java throws clause - sonarqube issue

Score: 0

Views: 683

Answers: 2

Read More
learningIsFun
learningIsFun

Reputation: 152

Why throws for IOException in method signature is needed for only specific cases?

Score: 0

Views: 157

Answers: 1

Read More
Angelo Brown
Angelo Brown

Reputation: 19

Throws in method signature of constructor

Score: -1

Views: 188

Answers: 1

Read More
Amani
Amani

Reputation: 11

exception thrown from constructor

Score: 0

Views: 26

Answers: 0

Read More
Anshul Gupta
Anshul Gupta

Reputation: 277

"Get around" throws clause by subclassing Runtime Exception

Score: 0

Views: 267

Answers: 1

Read More
Anshul Gupta
Anshul Gupta

Reputation: 277

Unable to subclass Runtime Exception

Score: -1

Views: 599

Answers: 2

Read More
Andy
Andy

Reputation: 4521

What is the cleanest way in swift to throw an optional error?

Score: 3

Views: 2564

Answers: 3

Read More
Yanni Wang
Yanni Wang

Reputation: 757

Swift: How to deallocate properties when init throw?

Score: 1

Views: 1015

Answers: 3

Read More
Clarke
Clarke

Reputation: 305

Why doesn't Java support adding `throws` to the method signature?

Score: -1

Views: 383

Answers: 1

Read More
Andrew Wilken
Andrew Wilken

Reputation: 55

How to throw an IllegalArgumentException when an array is null or empty?

Score: 0

Views: 2253

Answers: 3

Read More
PreviousPage 3Next