Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Výjimky #14

Open
bedaHovorka opened this issue Jan 27, 2021 · 0 comments
Open

Výjimky #14

bedaHovorka opened this issue Jan 27, 2021 · 0 comments

Comments

@bedaHovorka
Copy link

bedaHovorka commented Jan 27, 2021

Exception => Flakanec
throw => dostanes - nebude nutne davat zrob a ()
throws => rozdava
try => pultik
catch => bitka

Priklad:

Drist drystaniPredMicrofonem() rozdava Flakanec {
	kaj (mikrofon != chuj aj mikrofon.zapnuty) {
		davaj "Hanzel desitka" pyco
	} boinak {
		dostanes Flakanec pyco
	}
}

pultik {
	drystaniPredMicrofonem() pyco
} bitka(Flakanec f) {
	soudruziPomoc() pyco
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@bedaHovorka and others