Back to project page eyebrows-sync.
The source code is released under:
Copyright (c) 2014 Jon Petraglia of Qweex All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "...
If you think the Android project eyebrows-sync listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.qweex.eyebrows; /* w w w.j av a2 s.c o m*/ import java.util.HashMap; import java.util.Map; //TODO: Localize this shit public class EyebrowsError extends Exception { private static final Map<Integer,String> msgs; static { msgs = new HashMap<Integer, String>(); msgs.put(-401, "Password is incorrect"); msgs.put(401, "Credentials are required"); msgs.put(404, "404"); } public EyebrowsError(int errorCode, boolean requiresCredentials) { super(errorCode == 401 && requiresCredentials ? msgs.get(-401) : msgs.get(errorCode)); } }