Its a bedrock principal. In order successfully to sue a criminal defense attorney, you must show actual innocence. Sometimes this is possible; think the Innocence Project. Often it is not; think ineffective assistance of counsel. Here is a California play on the issue. The blog.