     public var actionKey: String?
     public let duration: NSTimeInterval
     private let date: NSDate
+    private let isError: Bool
     private static let defaultDisplayTime: NSTimeInterval = 5
     private static var actions = [String:Action]()
     
-    public init(text: String, displayDuration: NSTimeInterval = defaultDisplayTime) {
+    public init(text: String, displayDuration: NSTimeInterval = defaultDisplayTime, isError error: Bool = false) {
         self.text = text
         self.date = NSDate()
         self.duration = displayDuration
+        self.isError = error
     }
     
     public init?(pushPayload: [NSObject : AnyObject]) {

        }
    }
    
    private func hideHairlineBorder() {
        for view in subviews {
            if let imageView = view as? UIImageView {

        let views = ["underStatusBar":underStatusBar]
        addConstraints(NSLayoutConstraint.constraintsWithVisualFormat("H:|[underStatusBar]|", options: NSLayoutFormatOptions(rawValue: 0), metrics: nil, views: views))
        addConstraints(NSLayoutConstraint.constraintsWithVisualFormat("V:|-(-20)-[underStatusBar(20)]", options: NSLayoutFormatOptions(rawValue: 0), metrics: nil, views: views))
        underStatusBarView = underStatusBar
    }
}
