Code Monkey home page Code Monkey logo

java-exceptionalzoos's Introduction

Project Exceptional Zoos

A student that completes this project shows that they can:

  • implement industry standard exception handling including user friendly exception messages
  • troubleshoot running services using both system and programmatically generated logs

Introduction

Instructions

Starting with your java-zoo application (instructions for that application can be found at https://github.com/LambdaSchool/java-zoos.git)

Add appropriate exception handling routines. Required exceptions to handle are when

  • a resource is not found
  • the wrong data type is used for a path variable
  • a non-handled endpoint is accessed (a URL not found exception)
  • (other standard exceptions can also be handled)
  • include a generic exception handler to trap all exceptions not previously handled

Add appropriate logging routines. Required logging include

  • Activating actuator endpoints
  • Tomcat logging routed to a separate log file
  • Custom logging under each Get endpoint saying the endpoint has been accessed
    • should only go to console
    • for example when a client calls PUT /students/Student log should say "PUT /students/Student accessed"
    • include in log any appropriate parameters sent to the end point
  • Note: put the log files under the directory /tmp/var/logs/lambdajx You may have to create some directories for this to work.
  • Log when each class and method is accessed in the zoo application.

Stretch Goals

  • for each log, add a date and time stamp.
  • Make the endpoint /zoos/zoos pageable and sortable

java-exceptionalzoos's People

Contributors

jrmmba8314 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.