Everyone has already said it pretty good, No Failure! I've walked hills before, there is no shame in walking for the gravity challenged.
Failure would be to let it defeat you. Don't be ashamed if you have to walk it a second or third time, you will get up it.
btw, when you tried to get back on your bike, did you do it pointed straight up the hill? If so, it can be much easier if you point your bike perpendicular to the roadway so that you can get started pedaling on a easier gradiant then turn up the hill so you are going in a zig-zag pattern up the hill instead of straight up it. Make sure there are no cars coming before you do this though!