Back to project page Android-CleanArchitecture.
The source code is released under:
Apache License
If you think the Android project Android-CleanArchitecture listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/** * Copyright (C) 2014 android10.org. All rights reserved. * @author Fernando Cejas (the android10 coder) *//*from w w w .j ava2 s. c o m*/ package com.fernandocejas.android10.sample.data.exception; import com.fernandocejas.android10.sample.domain.exception.ErrorBundle; /** * Wrapper around Exceptions used to manage errors in the repository. */ public class RepositoryErrorBundle implements ErrorBundle { private final Exception exception; public RepositoryErrorBundle(Exception exception) { this.exception = exception; } public Exception getException() { return exception; } public String getErrorMessage() { String message = ""; if (this.exception != null) { this.exception.getMessage(); } return message; } }