Update error flash class by official documentation