Lines Matching refs:error

52      * A generic error occurred
62 // Update if you add a new SSL error!!!
67 * The SSL error set bitfield (each individual error is a bit index;
73 * The SSL certificate associated with the error set
78 * The URL associated with the error set.
83 * Creates a new SslError object using the supplied error and certificate.
85 * @param error The SSL error
90 public SslError(int error, SslCertificate certificate) {
91 this(error, certificate, "");
95 * Creates a new SslError object using the supplied error and certificate.
97 * @param error The SSL error
102 public SslError(int error, X509Certificate certificate) {
103 this(error, certificate, "");
107 * Creates a new SslError object using the supplied error, certificate and
109 * @param error The SSL error
113 public SslError(int error, SslCertificate certificate, String url) {
116 addError(error);
122 * Creates a new SslError object using the supplied error, certificate and
124 * @param error The SSL error
128 public SslError(int error, X509Certificate certificate, String url) {
129 this(error, new SslCertificate(certificate), url);
133 * Creates an SslError object from a chromium error code.
134 * @param error The chromium error code
137 * @hide chromium error codes only available inside the framework
140 int error, SslCertificate cert, String url) {
141 // The chromium error codes are in:
143 assert (error >= -299 && error <= -200);
144 if (error == -200)
146 if (error == -201)
148 if (error == -202)
171 * Adds the supplied SSL error to the set.
172 * @param error The SSL error to add
173 * @return True if the error being added is a known SSL error, otherwise
176 public boolean addError(int error) {
177 boolean rval = (0 <= error && error < SslError.SSL_MAX_ERROR);
179 mErrors |= (0x1 << error);
186 * Determines whether this object includes the supplied error.
187 * @param error The SSL error to check for
188 * @return True if this object includes the error, otherwise false.
190 public boolean hasError(int error) {
191 boolean rval = (0 <= error && error < SslError.SSL_MAX_ERROR);
193 rval = ((mErrors & (0x1 << error)) != 0);
200 * Gets the most severe SSL error in this object's set of errors.
202 * @return The most severe SSL error, or -1 if the set is empty.
207 for (int error = SslError.SSL_MAX_ERROR - 1; error >= 0; --error) {
208 if ((mErrors & (0x1 << error)) != 0) {
209 return error;
224 return "primary error: " + getPrimaryError() +