Minimum Distance Determines Error Capability