Merge commit '6e8c6ca1e72f5423a63cf1ee254575244c7fb445' into ja

This commit is contained in:
Shin Kojima
2014-12-17 01:17:13 +09:00

View File

@@ -200,13 +200,11 @@ After we've finished modifying our custom error, our logic can be changed as fol
return nil
}
As shown above, in view of the time we can get access to different error codes and error messages depending on the case, although this version of our code is a little bit similar to the previous one, it's more explicit error, the error message prompts more friendly , scalability is also better than the first one .
As shown above, we can return different error codes and error messages in our views, depending on the situation. Although this version of our code functions similarly to the previous version, it's more explicit, and its error message prompts are more comprehensible. All of these factors can help to make your application more scalable when complexity increases.
As shown above, we can return different error codes and error messages in our views, depending on the situation. Although this version of our code functions similarly to the previous version, it's more explicit, and its error message prompts are more comprehensible. All of these factors can help to make your application more scalable as complexity increases.
## Summary
In programming , fault tolerance is a very important part of the work , in Go it is achieved through error handling , error although only one interface, but it can have many variations but we can according to their needs to achieve different treatment Finally introduce error handling scheme , we hope that in how to design better programs on the Web error handling to bring some ideas .
Fault tolerance is a very important aspect of any programming language. In Go, it is achieved through error handling. Although `Error` is only one interface, it can have many variations in the way that it's implemented, and we can customize it according to our needs on a case by case basis. By introducing these various error handling concepts, we hope that you will have gained some insight on how to implement better error handling schemes in your own web applications.
## Links