Does go have standard Err variables? -


just started using golang. think idiomatic declare error variable , use in error structure determine went wrong, done in strconv.go. there, errrange , errsyntax declared, , when appropriate, references stored in numerror structs when return. think reason because address of reference error stored in numerror can compared errrange , errsyntax variables determine type of error returned.

are there "standard" such declared error types? in java, example, have things java.lang.illegalargumentexception. there, instance, errargument or errunsupportedoperation can use in own code instead of creating new error variables mean same thing every time?

no, there aren't. provide intelligible errors instead of generic ones. information illegalargument transport? not much, not enough.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -